/* --- MODERN DARK THEME PORTFOLIO STYLES --- */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

/* New Color Palette & Root Variables */
:root {
    --bg-color: #081b29; /* Dark Blue background */
    --second-bg-color: #112e42;
    --text-color: #ededed; /* Light text for contrast */
    --main-color: #00abf0; /* Vibrant cyan for highlights */
    --card-bg-color: rgba(255, 255, 255, 0.05); /* For Glassmorphism effect */
    --shadow-color: rgba(0, 0, 0, 0.2);
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

.section-title {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0; /* Initially hidden for animation */
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-title span {
    color: var(--main-color);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

/* Header with sticky effect */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(8, 27, 41, 0.8); /* Semi-transparent header */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 171, 240, 0.2);
    transition: all .3s;
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 3.5rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    text-shadow: 0 0 10px var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

/* Home Section with Gradient Background */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, var(--second-bg-color) 0%, var(--bg-color) 70%);
}

.home-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.home-content .text-content {
    max-width: 60rem;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--main-color);
}

.home-content p {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Upgraded Social Media Icons with Glow Effect */
.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 0 1.5rem 0 0;
    transition: .5s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 2rem var(--main-color);
}

.home-img img {
    width: 35vw;
    max-width: 400px;
    border-radius: 50%;
    border: 3px solid var(--main-color);
    box-shadow: 0 0 3rem var(--main-color);
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-2.4rem); }
    100% { transform: translateY(0); }
}

/* --- Glassmorphism Card Style for all sections --- */
.glass-card {
    background: var(--card-bg-color);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0; /* Initially hidden for animation */
    transform: translateY(20px);
}

.glass-card:hover {
    transform: translateY(-1rem);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3);
}

/* About Section */
.about {
     background: var(--second-bg-color);
}
.about-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.about-box {
    flex: 1 1 45rem;
}

.about-box h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--main-color);
}

.about-box ul {
    list-style: none;
}

.about-box ul li {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.about-box ul li i {
    color: var(--main-color);
    margin-right: 1rem;
    font-size: 1.8rem;
    min-width: 20px;
}


/* Skills Section */
.skills-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.skills-box {
    flex: 1 1 45rem;
}

.skills-box h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--main-color);
}

.skill-item {
    font-size: 1.7rem;
    background: rgba(0, 171, 240, 0.1);
    border: 1px solid rgba(0, 171, 240, 0.3);
    padding: 1rem 1.5rem;
    border-radius: .5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    transition: .3s;
}
.skill-item:hover {
    background: var(--main-color);
    color: var(--bg-color);
}


/* Education Section */
.education {
    background: var(--second-bg-color);
}
.education-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2rem;
}

.education-card h3 {
    font-size: 2rem;
    color: var(--main-color);
}

.education-card p {
    font-size: 1.6rem;
    margin: 1rem 0;
}
.education-card .date {
    color: #ccc;
    font-style: italic;
}
.education-card .grade {
    font-weight: 600;
    color: var(--text-color);
}

/* Projects Section */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 2.5rem;
}

.project-card h3 {
    font-size: 2.5rem;
    color: var(--main-color);
}
.project-card p {
    font-size: 1.6rem;
    margin: 1rem 0;
}
.project-date {
    font-size: 1.4rem;
    color: #ccc;
    font-style: italic;
}

/* Experience Section */
.experience {
     background: var(--second-bg-color);
}
.experience-container {
    text-align: center;
    font-size: 2rem;
    color: #aaa;
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.contact-info {
    flex: 1 1 40rem;
}

.contact-info h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--main-color);
}

.contact-info p {
    font-size: 1.7rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.contact-info p i {
    color: var(--main-color);
    margin-right: 1rem;
    font-size: 2rem;
}
.contact-info p a {
    color: var(--text-color);
}
.contact-info p a:hover {
    color: var(--main-color);
    text-decoration: underline;
}

.contact-form {
    flex: 1 1 50rem;
}
.contact-form h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    border: 1px solid var(--main-color);
    border-radius: .8rem;
    margin-bottom: 1rem;
}
.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: #aaa;
}


/* Button with Glow Effect */
.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: .8rem;
    color: var(--bg-color);
    font-size: 1.6rem;
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
    cursor: pointer;
    box-shadow: 0 0 1rem var(--main-color);
}

.btn:hover {
    box-shadow: 0 0 2.5rem var(--main-color), 0 0 5rem var(--main-color);
}

.form-message {
    font-size: 1.6rem;
    margin-top: 1rem;
    text-align: center;
}
.form-message.success { color: #28a745; }
.form-message.error { color: #dc3545; }


/* Footer */
.footer {
    text-align: center;
    padding: 2rem 9%;
    background: var(--second-bg-color);
    font-size: 1.4rem;
}

/* --- Scroll Animation Classes --- */
.animate {
  opacity: 1;
  transform: translateY(0);
}


/* --- Responsive Design --- */
@media (max-width: 1200px) {
    html { font-size: 55%; }
}

@media (max-width: 991px) {
    #header { padding: 2rem 3%; }
    section { padding: 10rem 3% 2rem; }
    .home-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    .home-img img { width: 70vw; margin-top: 4rem; }
}

@media (max-width: 768px) {
    #menu-icon { display: block; }
    .navbar {
        position: absolute;
        top: 100%;
        left: -100%; /* Hide off-screen */
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        transition: .3s;
    }
    .navbar.active { left: 0; }
    .navbar a { display: block; font-size: 2rem; margin: 3rem 0; }
    .home-content h1 { font-size: 5rem; }
    .home-content h3 { font-size: 2.6rem; }
}