* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;

}


.container_hero {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-around;
}

header {
    background: #0f172a;
    color: #fff;
    padding: 15px 0;
}

header {
    background: #0b1220;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo {
    color: #fff;
}

.divider {
    width: 120px;
    height: 2px;
    background-color: white;
    opacity: 0.7;
    margin: 10px auto;
}


/* Desktop Nav */
nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1100; /* VERY IMPORTANT */
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
}

/* Mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #0b1220;
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        z-index: 1000;
        /* Smooth animation setup */
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
        transition: opacity 0.35s ease, transform 0.35s ease;
    }

    nav.active {
        display: flex;
         opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}


.hero {
    background: linear-gradient(to right, #0f172a, #1e293b);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 40px;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    background: #38bdf8;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.section {
    padding: 60px 0;
}

.bg-light {
    background: #f4f4f4;
}


.profile-card {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);

}

.profile-card img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}


@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}


@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-card {
        width: 220px;
        height: 220px;
        margin: 20px;
        margin: 20px auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}





.container_hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .container_hero {
        flex-direction: column;   
        text-align: center;
    }

    .hero-image {
        order: 1;                
        margin-bottom: 20px;
    }

    .bio_det {
        order: 2;                
    }

    .profile-card {
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }

    .profile-card img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
    }
}



.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.skills-grid span {
    background: #0f172a;
    color: #fff;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
}

.card {
    background: #fff;
    padding: 20px;
    margin-top: 20px;
    border-left: 5px solid #38bdf8;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.project-card {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
}

.project-card a {
    display: inline-block;
    margin-top: 10px;
    color: #0f172a;
    font-weight: bold;
}

form {
    max-width: 500px;
    margin-top: 20px;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

form button {
    background: #0f172a;
    color: #fff;
    padding: 10px;
    border: none;
    cursor: pointer;
    width: 100%;
}

footer {
    background: #0f172a;
    color: #fff;
    text-align: center;
    padding: 15px 0;
}



















/* Global animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

nav a {
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #38bdf8;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}


.skills-grid span {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills-grid span:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}


.project-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}


.scroll-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.scroll-hidden.active {
    opacity: 1;
    transform: translateY(0);
}


.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    width: 0;
    height: 0;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::after {
    width: 200%;
    height: 200%;
}

.social-section {
    background: #0f172a;
    color: #fff;
    text-align: center;
    padding: 60px 0;
}

.social-section h2 {
    margin-bottom: 10px;
}

.social-section p {
    margin-bottom: 25px;
    color: #cbd5f5;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-icons a {
    background: #1e293b;
    padding: 15px;
    border-radius: 50%;
    transition: transform 0.3s ease,  0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-8px);
    background: #38bdf8;
}

.social-icons img {
    width: 28px;
    height: 28px;
    filter: invert(1);
}
