/* Global Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #222;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Navbar */
header {
    background-color: #0f172a;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    color: #38bdf8;
    font-size: 28px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: #38bdf8;
}

/* Hero Section */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #0f172a, #1e293b);
    color: white;
    padding: 40px 8%;
}

.hero-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 52px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content h3 {
    font-size: 24px;
    color: #38bdf8;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
}


.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.primary-btn {
    background-color: #38bdf8;
    color: white;
}

.primary-btn:hover {
    background-color: #0ea5e9;
}

.secondary-btn {
    border: 2px solid white;
    color: white;
}

.secondary-btn:hover {
    background-color: white;
    color: #0f172a;
}


/* Hero Image */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 280px;
}

.hero-image img {
    width: 250px;
    height: 320px;
    object-fit: contain;
    border-radius: 20px;
    object-position: top;
    border: 5px solid #38bdf8;
    box-shadow:
        0 0 15px rgba(56, 189, 248, 0.4),
        0 0 35px rgba(56, 189, 248, 0.2);
}

/* Sections */
.section {
    width: 90%;
    margin: auto;
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: #0f172a;
}

/* About */
.about-content {
    max-width: 900px;
    margin: auto;
    text-align: center;
    font-size: 18px;
}

.about-content p {
    margin-bottom: 20px;
}

/* Skills */
.skills-container,
.project-container,
.education-container,
.experience-container,
.certificate-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.skill-card,
.project-card,
.education-card,
.experience-card,
.certificate-card {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.skill-card:hover,
.project-card:hover,
.education-card:hover,
.experience-card:hover,
.certificate-card:hover {
    transform: translateY(-8px);
}

.skill-card h3,
.project-card h3,
.education-card h3,
.experience-card h3 {
    margin-bottom: 15px;
    color: #0f172a;
}

.education-card span {
    display: inline-block;
    margin-top: 10px;
    color: #0ea5e9;
    font-weight: 600;
}

/* Contact */
.contact-container {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 700px;
    margin: auto;
    text-align: center;
}

.contact-container p {
    margin-bottom: 15px;
    font-size: 18px;
}

.contact-container a {
    text-decoration: none;
    color: #0ea5e9;
}
.email-link {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
}

.email-link:hover{
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #0f172a;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content h3 {
        font-size: 20px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-image img {
        width: 140px;
        height: 178px;
        border-radius: 10px;
    }

.skills-container,
.project-container,
.education-container,
.experience-container,
.certificate-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

    .section-title h2 {
        font-size: 30px;
    }
}
