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

body {
    color: white;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
}


/* NAV */

header {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 20px;
}

nav a {
    color: white;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    font-size: 24px;
}


/* HERO */

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 120px 40px;
}

.hero span {
    color: #38bdf8;
}

.hero-text {
    max-width: 500px;
}

.hero-text h1 {
    margin-bottom: 10px;
}

.hero-text p {
    margin-top: 10px;
    line-height: 1.5;
}

.hero-img img {
    width: 320px;
}

.hero-buttons {
    margin-top: 15px;
}


/* BUTTON */

.btn {
    padding: 10px 20px;
    background: #38bdf8;
    color: black;
    border-radius: 20px;
    text-decoration: none;
    margin: 10px 10px 0 0;
    display: inline-block;
}

.btn.outline {
    background: transparent;
    border: 2px solid #38bdf8;
    color: #38bdf8;
}


/* PROJECT */

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
    /* ADD THIS */
    margin: auto;
    /* ADD THIS */
}

.project-card {
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* Tech tags */

.tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech span {
    background: #38bdf8;
    color: black;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 13px;
}


/* Buttons inside project */

.project-content .btn {
    margin-top: 8px;
    width: fit-content;
}


/* SKILLS */

.grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 18px;
    border-radius: 12px;
}


/* CONTACT */

#contact {
    text-align: center;
    padding: 60px 20px 20px;
}

.contact-form {
    max-width: 400px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 14px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
}

.contact-form button {
    padding: 12px;
    border-radius: 25px;
    border: none;
    background: #38bdf8;
    color: black;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    transform: scale(1.05);
}


/* FOOTER */

footer {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    font-size: 14px;
}

footer a {
    color: #38bdf8;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


/* MOBILE */

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 20px;
    }
    .hero-img img {
        width: 200px;
        margin-top: 20px;
    }
    .menu-toggle {
        display: block;
    }
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: black;
        margin-top: 10px;
        padding: 10px;
        border-radius: 10px;
    }
    nav ul.show {
        display: flex;
    }
    nav li {
        margin: 10px 0;
    }
    .grid {
        flex-direction: column;
        align-items: center;
    }
    .project-content {
        gap: 12px;
    }
    .tech span {
        font-size: 12px;
        padding: 4px 8px;
    }
}


/* 🔥 BUTTON HOVER EFFECTS */

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(56, 189, 248, 0.4);
}


/* Outline button hover */

.btn.outline:hover {
    background: #38bdf8;
    color: black;
}


/* Small buttons (project buttons) */

.project-content .btn:hover {
    transform: translateY(-2px) scale(1.05);
}


/* Contact form button hover (extra smooth) */

.contact-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(56, 189, 248, 0.4);
}


/* SCROLL ANIMATION */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.hero::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: #38bdf8;
    filter: blur(120px);
    top: 100px;
    left: -100px;
    opacity: 0.3;
}

.hero {
    position: relative;
}

.btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.5);
}

section {
    padding: 80px 20px;
}

section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 30px;
    position: relative;
}

section h2::after {
    content: "";
    width: 60px;
    height: 3px;
    background: #38bdf8;
    display: block;
    margin: 10px auto 0;
    border-radius: 10px;
}

.container {
    max-width: 1100px;
    margin: auto;
}

section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 30px;
}

section {
    padding: 80px 20px;
}

.project-card img {
    width: 100%;
    height: 180px;
    /* control image height */
    object-fit: cover;
    /* prevents stretching */
}

.project-card img {
    transition: transform 0.4s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

nav a.active {
    color: #38bdf8;
    position: relative;
}

nav a.active::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: #38bdf8;
    left: 0;
    bottom: -5px;
    border-radius: 10px;
}

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: #38bdf8;
    width: 0%;
    z-index: 2000;
}


/* THEME BUTTON */

#theme-toggle {
    margin-left: 15px;
    padding: 6px 10px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: #38bdf8;
}


/* LIGHT MODE */

.light-mode {
    background: #f8fafc;
    color: #0f172a;
}

.light-mode header {
    background: rgba(255, 255, 255, 0.9);
}

.light-mode nav a {
    color: #0f172a;
}

.light-mode .project-card,
.light-mode .card {
    background: rgba(0, 0, 0, 0.05);
}


/* MODAL */

.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: #111;
    margin: 10% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.close-btn {
    float: right;
    font-size: 22px;
    cursor: pointer;
}


/* CUSTOM CURSOR */

.cursor {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid #38bdf8;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: 0.1s ease;
    z-index: 5000;
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #38bdf8;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 5000;
}

body {
    cursor: none;
}


/* LOADER */

#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

#loader h1 {
    color: #38bdf8;
    font-size: 28px;
    letter-spacing: 2px;
}