/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* ===== BODY ===== */
body {
    background-color: #0a0a0a;
    color: #f0f0f0;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #101820;
    padding: 1rem 10%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 1.6rem;
    font-weight: 600;
    color: #00bcd4;
}

.logo span {
    color: #fff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #00bcd4;
}

/* ===== HERO ===== */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at top, #101820, #050505);
}

.hero-content h1 {
    font-size: 2.8rem;
    color: #fff;
}

.hero-content h1 span {
    color: #00bcd4;
}

.hero-content p {
    margin: 1rem 0;
    color: #bbb;
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.8rem;
    background: #00bcd4;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background: #0097a7;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 5rem 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: linear-gradient(180deg, #0b0c10, #0e131a);
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.about-image img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #00bcd4;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.4);
}

.about-text {
    flex: 1;
    min-width: 320px;
}

.about-text h2 {
    font-size: 2rem;
    color: #00bcd4;
    margin-bottom: 1rem;
}

.about-text p {
    color: #ccc;
    margin-bottom: 1rem;
}

.about-details {
    margin-top: 1.5rem;
}

.about-details p {
    margin-bottom: 0.5rem;
    color: #bbb;
}

.btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 1.6rem;
    background: #00bcd4;
    color: #fff;
    border-radius: 8px;
    transition: 0.3s;
}

.btn:hover {
    background: #0097a7;
    transform: translateY(-2px);
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 2rem;
    color: #00bcd4;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 3rem;
}

/* ===== UNIFIED PROFILE SECTION ===== */
.profile-section {
    background: linear-gradient(180deg, #0e131a, #101820);
    padding: 5rem 10%;
}

.profile-container {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

/* ===== EDUCATION ===== */
.education-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.education-card {
    background: #101820;
    border-left: 4px solid #00bcd4;
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    max-width: 340px;
    transition: 0.3s;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.2);
}

.education-card h3 {
    color: #00bcd4;
    margin-bottom: 0.5rem;
}

.education-card .course {
    font-weight: 600;
    color: #fff;
}

.education-card .duration {
    font-style: italic;
    color: #aaa;
    margin: 0.3rem 0;
}

.education-card .desc {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.education-card .contact {
    color: #888;
    font-size: 0.9rem;
}

/* ===== SKILLS ===== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.skills-category {
    background: #101820;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.05);
    transition: 0.3s;
}

.skills-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.2);
}

.skills-category h3 {
    color: #00bcd4;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.skills-list {
    list-style: none;
}

.skills-list li {
    background: #0b0c10;
    padding: 0.5rem 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    color: #ddd;
    transition: 0.3s;
}

.skills-list li:hover {
    background: #00bcd4;
    color: #fff;
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
    padding: 5rem 10%;
    background: linear-gradient(180deg, #101820, #0a0a0a);
    text-align: center;
}

.section-title {
    font-size: 2rem;
    color: #00bcd4;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #aaa;
    margin-bottom: 3rem;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #111;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.1);
    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.2);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-info {
    padding: 1.2rem;
}

.project-info h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: #bbb;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 5rem 10%;
    background: linear-gradient(180deg, #0a0a0a, #101820);
    text-align: center;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    margin-top: 3rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    text-align: left;
    color: #ccc;
}

.contact-info h3 {
    color: #00bcd4;
    margin-bottom: 1rem;
}

.contact-info a {
    color: #00bcd4;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form {
    flex: 1;
    min-width: 320px;
    background: #111;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.1);
}

.form-group {
    margin-bottom: 1rem;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    outline: none;
    font-size: 1rem;
}

input:focus, textarea:focus {
    border: 1px solid #00bcd4;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.2);
}

/* ===== FOOTER ===== */
.footer {
    background-color: #0a0a0a;
    color: #ccc;
    padding: 0.8rem 0;
    text-align: center;
    border-top: 1px solid #222;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #ccc;
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #00aced;
    transform: scale(1.1);
}

/* == GLOBAL RESPONSIVE DESIGN == */

/* --- Base Reset for Fluid Layout --- */
html, body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Images and videos scale down automatically */
img, video {
    max-width: 100%;
    height: auto;
}

/* Typography adjusts slightly for smaller screens */
@media (max-width: 1200px) {
    body {
        font-size: 15px;
    }

    header {
        padding: 1rem 5%;
    }

    section {
        padding: 4rem 8%;
    }
}

/* ==TABLET (iPad, small laptops) == */
@media (max-width: 1024px) {
    nav ul {
        gap: 1.5rem;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* == MOBILE (Phones) == */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: row;
        gap: 1rem;
        margin-top: 1rem;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .about-image {
        display: flex;
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .about-image img {
        width: 180px;
        height: 180px;
    }

    .about-text {
        width: 95%;
        text-align: center;
    }

    .education-container,
    .skills-container,
    .projects-container {
        grid-template-columns: 1fr;
    }

    .education-card,
    .project-card,
    .skill-card {
        width: 90%;
        margin: 0 auto;
    }

    .btn {
        margin: 1.2rem auto 0 auto;
    }
    .footer-content {
        flex-direction: column;
        gap: 0.8rem;
    }

    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ==SMALL MOBILE (iPhone SE, mini phones) == */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    header h1 {
        font-size: 1.6rem;
    }

    .about-image img {
        width: 150px;
        height: 150px;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

