/* -------- RESET -------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #f0f4ff;
    color: #222;
    line-height: 1.6;
}

/* -------- CONTAINER -------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 30px 0;
}

/* -------- HERO SECTION (Updated) -------- */
header {
    background: linear-gradient(135deg, rgb(76, 135, 255), #6bc1ff);
    color: white;
    padding: 60px 20px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);

    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero layout */
.hero-container {
    width: 90%;
    max-width: 1100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease;
}

header.loaded .hero-container {
    opacity: 1;
    transform: translateY(0);
}

/* Profile Picture */
.hero-img img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;

    border: 6px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);

    animation: floatPic 3s infinite ease-in-out;
}

@keyframes floatPic {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Hero Content */
.hero-text h1 {
    font-size: 36px;
    margin-bottom: 8px;
    font-weight: 700;
}

.hero-text .headline {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 12px;
}

/* Social Icons */
.hero-social a {
    margin-right: 12px;
    font-size: 26px;
    color: white;
    transition: 0.3s ease;
}

.hero-social a:hover {
    color: #222;
    transform: scale(1.18);
}

/* -------- MOBILE RESPONSIVE -------- */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-img img {
        width: 150px;
        height: 150px;
    }

    .hero-text h1 {
        font-size: 28px;
    }
}

/* -------- SOCIAL ICONS -------- */
.social-links {
    margin-top: 15px;
}

.social-links a {
    margin: 0 10px;
    color: white;
    font-size: 24px;
    transition: 0.3s;
}

.social-links a:hover {
    color: #222;
    transform: scale(1.2);
}

/* -------- SECTIONS -------- */
section {
    background: white;
    padding: 30px;
    margin: 25px 0;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(30px);
}

/* Section headers */
section h2 {
    color: #4c87ff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* ---------------------------------------------------------
   NAVBAR (Improved & Fully Responsive)
--------------------------------------------------------- */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 12px 0;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

/* Container */
.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.nav-logo {
    font-size: 28px;
    font-weight: 700;
    color: #4b79ff;
    letter-spacing: 1px;
}

/* Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s ease;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}

.nav-links li a:hover {
    color: #4b79ff;
    border-bottom: 2px solid #4b79ff;
}

/* Active Link Style */
.nav-links li a.active {
    color: #4b79ff;
    border-bottom: 2px solid #4b79ff;
}

/* Mobile Menu Button */
.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 28px;
    color: #333;
    transition: 0.3s ease;
}

.nav-toggle:hover {
    color: #4b79ff;
}

/* ---------------------------------------------------------
   MOBILE RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 768px) {
    
    /* Hide desktop links */
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        width: 250px;
        background: white;
        flex-direction: column;
        padding: 20px;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        
        /* Hidden by default */
        display: none;
        opacity: 0;
        transform: translateY(-20px);
        transition: 0.3s ease;
    }

    /* Menu Open Animation */
    .nav-links.open {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    /* Items spacing */
    .nav-links li {
        margin-bottom: 15px;
    }

    .nav-toggle {
        display: block;
    }
}

/* -------- ABOUT SECTION -------- */
.about p {
    margin-bottom: 12px;
}

/* -------- EDUCATION -------- */
.education-item {
    margin-bottom: 18px;
    padding: 15px;
    background: #f7faff;
    border-radius: 10px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.item-subtitle {
    font-size: 14px;
    color: #444;
}

/* -------- SKILLS -------- */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.skill-category {
    flex: 1;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #e5efff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    color: #2a59d1;
    font-weight: 600;
    transition: 0.3s;
}

.tag:hover {
    background: #4c87ff;
    color: white;
    transform: scale(1.1);
}

/* -------- INTERESTS -------- */
.card {
    background: #f4f8ff;
    padding: 20px;
    border-radius: 14px;
}

/* -------- CERTIFICATIONS -------- */
.certifications-container {
    margin-top: 15px;
}

.certification-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #eef4ff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: 0.3s;
}

.certification-item:hover {
    transform: translateX(8px);
    background: #dfe9ff;
}

.certification-icon {
    font-size: 35px;
    color: #4c87ff;
}

/* -------- PROJECTS -------- */
.project-card {
    background: #f7faff;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.project-card:hover {
    transform: scale(1.03);
    background: #e9f1ff;
}

.project-link {
    display: inline-block;
    margin-top: 10px;
    background: #4c87ff;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.project-link:hover {
    background: #2f63c2;
}

/* -------- CONTACT -------- */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-info {
    flex: 1;
    font-size: 15px;
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 2px solid #d5e3ff;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #4c87ff;
    outline: none;
}

.contact-form button {
    background: #4c87ff;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #417eef;
}

/* -------- FOOTER -------- */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    background: #dce7ff;
    border-radius: 10px;
}
footer {
    background: #032b67ec;
    color: #fff;
    padding: 40px 0;
    margin-top: 50px;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-container div {
    width: 30%;
    min-width: 250px;
    margin-bottom: 20px;
}

footer h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

footer p, footer a {
    font-size: 16px;
    color: #ccc;
    text-decoration: none;
    margin: 8px 0;
}

footer i {
    margin-right: 10px;
    color: #00aaff;
}

footer a:hover {
    color: #00aaff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3c17c145;
    font-size: 14px;
    color: #aaa;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 768px) {
    .skills-grid, .contact-grid {
        flex-direction: column;
    }

    header h1 {
        font-size: 28px;
    }
}
