* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: #0f172a;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo - Left Side */
.logo {
    text-decoration: none;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 3px;
}

.logo-text {
    background: linear-gradient(90deg, #60a5fa, #a5b4fc, #c4d0ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Menu - Right Side */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.08rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: #60a5fa;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, #60a5fa, #a5b4fc);
    transition: width 0.4s ease;
    border-radius: 3px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #e2e8f0;
    transition: all 0.4s ease;
    border-radius: 3px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #0f172a;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: left 0.45s cubic-bezier(0.77, 0, 0.18, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

section {
    padding: 6rem 5%;
    min-height: 100vh;
}

#home {
    background: linear-gradient(120deg, #0f172a, #1e293b);
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content span {
    color: #38bdf8;
}

.btn {
    display: inline-block;
    margin-top: 1.5rem;
    background: #38bdf8;
    color: #000;
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn:hover {
    background: #0ea5e9;
    transform: translateY(-3px);
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #0f172a;
}

.about-container {
    display: flex;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.about-img {
    width: 300px;
    border-radius: 50%;
    border: 5px solid #38bdf8;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #334155;
}

.skills-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.skill-card {
    background: #111827;
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.project-card {
    background: #111827;
    color: #e5e7eb;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-card h3 {
    color: #38bdf8;
    margin: 10px 0;
}

.project-card p {
    margin-bottom: 10px;
}

.small {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    margin: 5px;
}

.contact-links {
    text-align: center;
    margin-top: 2rem;
}

.contact-links a {
    margin: 0 1rem;
    color: #38bdf8;
    text-decoration: none;
    font-size: 1.2rem;
}

footer {
    text-align: center;
    padding: 2rem;
    background: #0f172a;
    color: white;
}


/* Carousel styling */
.carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
}

.carousel img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: opacity 0.6s ease;
}


.about-section {
    padding: 100px 5%;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.profile-img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

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

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: #1a1a1a;
    position: relative;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 2px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 968px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .about-image {
        justify-content: center;
    }
}


.skills-section {
    padding: 100px 5%;
    background: #ffffff;
}

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

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 70px;
    color: #1a1a1a;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 4px;
}

/* #about-text {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 4px;
} */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card {
    background: #0f172a;
    color: white;
    padding: 28px 24px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.skill-name {
    display: block;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.skill-level {
    display: block;
    font-size: 0.95rem;
    opacity: 0.85;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 18px;
    }

    .section-title {
        font-size: 2.4rem;
    }
}

.contact-section {
    padding: 120px 5% 100px;
    background: #f8f9fa;
    text-align: center;
}

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

.section-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #1a1a1a;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 4px;
}

.contact-subtitle {
    font-size: 1.25rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-bottom: 50px;
}

/* Main Contact Buttons */
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #0f172a;
    color: white;
    padding: 18px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
    position: relative;
}

.contact-btn:hover {
    background: #1e40af;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.25);
    border-color: #3b82f6;
}

.btn-icon {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.contact-btn:hover .btn-icon {
    transform: scale(1.2);
}

/* Special GitHub Button with Hover Effect */
.github-hover-wrapper {
    position: relative;
    display: inline-block;
}


.github-old {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e2937;
    padding: 12px 20px;
    border-radius: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10;
    margin-top: 8px;
}

.github-hover-wrapper:hover .github-old {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.old-github-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.old-github-link:hover {
    color: #60a5fa;
}

/* WhatsApp Special Color */
.whatsapp-btn {
    background: #25D366 !important;
}

.whatsapp-btn:hover {
    background: #128C7E !important;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.3) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-btn,
    .github-hover-wrapper {
        width: 100%;
        max-width: 320px;
    }

    .github-old {
        position: static;
        transform: none;
        margin-top: 8px;
        opacity: 1;
        visibility: visible;
        background: #334155;
    }
}