* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #020617;
    color: white;
    font-family: Arial;
    overflow-x: hidden;
    position: relative;
}

    /* =========================================
   ANIMATED BACKGROUND
========================================= */

    body::before,
    body::after {
        content: '';
        position: fixed;
        width: 500px;
        height: 500px;
        border-radius: 50%;
        filter: blur(120px);
        z-index: -1;
        animation: glowMove 10s infinite alternate;
    }

    body::before {
        background: rgba(56,189,248,0.18);
        top: -100px;
        left: -100px;
    }

    body::after {
        background: rgba(168,85,247,0.15);
        bottom: -120px;
        right: -120px;
        animation-delay: 3s;
    }

@keyframes glowMove {

    from {
        transform: translateY(0px) translateX(0px);
    }

    to {
        transform: translateY(40px) translateX(30px);
    }
}

.main-container {
    width: 100%;
    overflow-x: hidden;
}

/* NAVBAR */

.navbar {
    background: rgba(15,23,42,0.95) !important;
    padding: 15px 80px;
}

.navbar-brand {
    color: #38bdf8 !important;
    font-size: 28px;
    font-weight: bold;
}

.nav-link {
    color: white !important;
    margin-left: 20px;
    transition: 0.3s;
}

    .nav-link:hover {
        color: #38bdf8 !important;
    }

/* HERO */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 80px;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

    .hero-content h3 {
        font-size: 28px;
    }

    .hero-content h1 {
        font-size: 70px;
        margin: 15px 0;
    }

    .hero-content h2 {
        font-size: 35px;
        margin-bottom: 20px;
    }

.typing {
    color: #38bdf8;
}

.hero-content p {
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-main {
    background: #38bdf8;
    color: black;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

    .btn-main:hover {
        transform: translateY(-5px);
    }

.btn-outline {
    border: 2px solid #38bdf8;
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.3s;
}

    .btn-outline:hover {
        background: #38bdf8;
        color: black;
    }

.btn-resume {
    background: transparent;
    border: 2px solid #22c55e;
    color: #22c55e;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.3s;
    font-weight: bold;
}

    .btn-resume:hover {
        background: #22c55e;
        color: black;
        transform: translateY(-5px);
    }

.hero-image img {
    width: 400px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 1200px) {

    .hero {
        padding: 120px 50px;
    }

    .about-section,
    .skills-section,
    .projects-section,
    .contact-section {
        padding: 100px 50px;
    }
}

/* TABLET */

@media (max-width: 991px) {

    .navbar {
        padding: 15px 25px;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 140px 30px 80px;
    }

    .hero-content {
        width: 100%;
    }

        .hero-content h1 {
            font-size: 50px;
        }

        .hero-content h2 {
            font-size: 28px;
        }

        .hero-content p {
            max-width: 100%;
        }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image img {
        width: 300px;
    }

    .about-section,
    .skills-section,
    .projects-section,
    .contact-section {
        padding: 80px 30px;
    }

    .section-title h2 {
        font-size: 38px;
    }

    .about-card {
        padding: 35px;
    }

    .skill-card,
    .project-card {
        padding: 30px;
    }
}

/* MOBILE */

@media (max-width: 768px) {

    .navbar-brand {
        font-size: 24px;
    }

    .hero {
        padding: 130px 20px 70px;
        gap: 30px;
    }

    .hero-content h3 {
        font-size: 22px;
    }

    .hero-content h1 {
        font-size: 38px;
        line-height: 1.2;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 15px;
        line-height: 1.7;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-main,
    .btn-outline {
        width: 220px;
        text-align: center;
    }

    .hero-image img {
        width: 220px;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .about-section,
    .skills-section,
    .projects-section,
    .contact-section {
        padding: 70px 20px;
    }

    .about-card {
        padding: 25px;
    }

        .about-card p {
            font-size: 15px;
        }

    .skills-container,
    .projects-container {
        grid-template-columns: 1fr;
    }

    .skill-card,
    .project-card {
        padding: 25px;
    }

    .contact-container input,
    .contact-container textarea {
        padding: 15px;
        font-size: 14px;
    }

    .contact-container button {
        padding: 15px;
    }

    .social-icons {
        gap: 15px;
    }

        .social-icons a {
            width: 50px;
            height: 50px;
            font-size: 20px;
        }

    footer {
        font-size: 14px;
        padding: 20px;
    }
}

/* SMALL MOBILE */

@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content h2 {
        font-size: 20px;
    }

    .hero-content h3 {
        font-size: 18px;
    }

    .hero-image img {
        width: 180px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .about-card,
    .skill-card,
    .project-card {
        border-radius: 15px;
    }

    .btn-main,
    .btn-outline {
        width: 100%;
    }
}


/* SECTION TITLE */

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

    .section-title h2 {
        font-size: 45px;
        color: #38bdf8;
    }

/* ABOUT */

.about-section,
.skills-section,
.projects-section,
.contact-section {
    padding: 120px 80px;
}

.about-container {
    display: flex;
    justify-content: center;
}

.about-card {
    max-width: 900px;
    background: rgba(255,255,255,0.05);
    padding: 50px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    line-height: 1.8;
    transition: 0.3s;
}

    .about-card:hover {
        transform: translateY(-10px);
    }

/* SKILLS */

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 30px;
}

.skill-card {
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
    font-size: 22px;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

    .skill-card:hover {
        transform: translateY(-10px);
        border: 1px solid #38bdf8;
        box-shadow: 0 0 20px rgba(56,189,248,0.4);
    }

/* =========================================
   PROJECTS
========================================= */

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

.project-card {
    width: 100%;
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 20px;
    transition: 0.3s;
    backdrop-filter: blur(10px);
    overflow: hidden;
    word-wrap: break-word;
}

    .project-card:hover {
        transform: translateY(-10px);
        border: 1px solid #38bdf8;
        box-shadow: 0 0 20px rgba(56,189,248,0.4);
    }

    .project-card h3 {
        margin-bottom: 18px;
        color: #38bdf8;
        font-size: 24px;
        line-height: 1.5;
    }

    .project-card p {
        font-size: 15px;
        line-height: 1.8;
        color: #d1d5db;
    }

/* CONTACT */

.contact-container {
    display: flex;
    justify-content: center;
}

    .contact-container form {
        width: 100%;
        max-width: 700px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .contact-container input,
    .contact-container textarea {
        padding: 18px;
        border-radius: 10px;
        border: none;
        background: rgba(255,255,255,0.08);
        color: white;
    }

    .contact-container textarea {
        height: 180px;
    }

    .contact-container button {
        padding: 18px;
        border: none;
        border-radius: 10px;
        background: #38bdf8;
        font-weight: bold;
        transition: 0.3s;
    }

        .contact-container button:hover {
            transform: translateY(-5px);
        }

/* FOOTER */

footer {
    text-align: center;
    padding: 30px;
    background: #020617;
}


/* SOCIAL ICONS */

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
}

    .social-icons a {
        width: 60px;
        height: 60px;
        background: rgba(255,255,255,0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: white;
        font-size: 24px;
        transition: 0.3s;
        text-decoration: none;
    }

        .social-icons a:hover {
            background: #38bdf8;
            color: black;
            transform: translateY(-10px);
        }

@keyframes gradientBG {

    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* MOBILE NAVBAR */

@media (max-width: 991px) {

    .navbar-collapse {

        background: rgba(15,23,42,0.98);

        padding: 20px;

        border-radius: 15px;

        margin-top: 15px;
    }

    .navbar-nav {

        gap: 10px;
    }

    .nav-link {

        padding: 10px;
    }
}


/* =========================================
   MOBILE PROJECT FIX
========================================= */

@media (max-width: 768px) {

    .projects-section {
        padding: 70px 15px;
    }

    .projects-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        width: 100%;
        padding: 22px;
    }

        .project-card h3 {
            font-size: 20px;
        }

        .project-card p {
            font-size: 14px;
            line-height: 1.7;
        }
}

@media (max-width: 480px) {

    .projects-section {
        padding: 60px 12px;
    }

    .project-card {
        padding: 18px;
        border-radius: 15px;
    }

        .project-card h3 {
            font-size: 18px;
        }

        .project-card p {
            font-size: 13px;
        }
}

.nav-link.active {
    color: #38bdf8 !important;
    font-weight: bold;
}


/* =========================================
   EXPERIENCE TIMELINE
========================================= */

.experience-section {
    padding: 120px 80px;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: auto;
}

    .timeline::before {
        content: '';
        position: absolute;
        width: 4px;
        background: #38bdf8;
        top: 0;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

    .timeline-item:nth-child(odd) {
        left: 0;
    }

    .timeline-item:nth-child(even) {
        left: 50%;
    }

.timeline-content {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

    .timeline-content h3 {
        color: #38bdf8;
        margin-bottom: 10px;
    }

    .timeline-content span {
        font-size: 14px;
        color: #94a3b8;
    }

    .timeline-content p {
        margin-top: 15px;
        line-height: 1.7;
    }

/* MOBILE */

@media(max-width:768px) {

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 10px;
    }

        .timeline-item:nth-child(even) {
            left: 0;
        }

    .experience-section {
        padding: 80px 20px;
    }
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}


.success-message {
    margin-top: 20px;
    background: rgba(34,197,94,0.2);
    color: #22c55e;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
}