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

/* General Body Styling */
body {
    width: 100%;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(to right, #000000, #0a043c);
    overflow-x: hidden;
}

/* Navigation Styling */
nav {
    width: 100%;
    height: 10vh;
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    color: #00d9ff;
    font-size: 2rem;
    font-weight: bolder;
    text-shadow: 0 0 15px #00d9ff;
}

.hamburg, .cancel {
    display: none;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
}

.nav-container .links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-container .links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-container .links a::before {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #00d9ff;
    transition: width 0.3s ease;
}

.nav-container .links a:hover::before {
    width: 100%;
}

.nav-container .links a:hover {
    color: #00d9ff;
}

/* Dropdown Menu Styling */
.dropdown {
    position: absolute;
    top: -500px;
    width: 100%;
    height: auto;
    background: rgba(10, 4, 60, 0.9);
    box-shadow: 0 0 20px #000000;
    transition: 0.3s ease;
    z-index: 999;
}

.dropdown .links a {
    display: block;
    text-align: center;
    padding: 15px 0;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dropdown .links a:hover {
    background-color: #00d9ff;
    color: #000000;
}

/* Section Styling */
section {
    width: 100%;
    min-height: 100vh;
    padding: 40px 20px;
}

section + section {
    margin-top: 0;
}

/* Main Container */
.main-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
}

/* Image Container */
.image {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Vertical Rectangle Image */
.image img.vertical-rectangle {
    width: 110%;
    max-width: 330px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 0 20px #00d9ff;
    object-fit: cover;
}

/* Content Styling */
.content {
    width: 55%;
    color: #ffffff;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content h1 {
    font-size: clamp(1.5rem, 2rem + 5vw, 4rem);
    margin-bottom: 20px;
}

.content h1 span {
    color: #00d9ff;
    text-shadow: 0 0 15px #00d9ff;
}

/* Typewriter Styling */
.content .typewriter {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.content .typewriter span {
    color: #00d9ff;
    text-shadow: 0 0 10px #00d9ff;
    border-right: 2px solid #00d9ff;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #00d9ff; }
}

/* Paragraph Styling */
.content p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Education & Certifications */
.education-certifications {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.edu-card {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #00d9ff;
}

.edu-card i {
    font-size: 2rem;
    color: #00d9ff;
    margin-bottom: 10px;
}

.edu-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #00d9ff;
}

.edu-card p {
    font-size: 0.9rem;
    color: #ffffff;
}

/* Download Resume Button */
.resume-button {
    margin-bottom: 20px;
}

.resume-button button {
    padding: 10px 20px;
    background: #00d9ff;
    color: #000000;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resume-button button:hover {
    background: #000000;
    color: #00d9ff;
    box-shadow: 0 0 20px #00d9ff;
}

/* Social Links Styling */
.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background: transparent;
    border: 2px solid #00d9ff;
    border-radius: 50%;
    color: #00d9ff;
    font-size: 1.5rem;
    transition: 0.3s ease;
}

.social-links a:hover {
    background: #00d9ff;
    color: #000000;
    box-shadow: 0 0 20px #00d9ff;
}

/* About Me Section */
.about-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

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

.about-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Skills Progress Bars */
.skills-progress {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.progress-bar {
    margin-bottom: 20px;
}

.progress-bar span {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
    color: #00d9ff;
    text-shadow: 0 0 5px #00d9ff;
}

.progress-bar i {
    margin-right: 10px;
    color: #00d9ff;
}

.progress-bar .bar {
    height: 10px;
    background: #00d9ff;
    border-radius: 5px;
    box-shadow: 0 0 10px #00d9ff;
    position: relative;
}

.progress-bar .bar::after {
    content: attr(data-progress);
    position: absolute;
    right: 0;
    top: -20px;
    font-size: 0.9rem;
    color: #ffffff;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.skill-card {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #00d9ff;
}

.skill-card i {
    font-size: 2.5rem;
    color: #00d9ff;
    margin-bottom: 15px;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #00d9ff;
}

.skill-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ffffff;
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #00d9ff;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 20px;
    position: relative;
    width: 50%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin-bottom: 20px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #00d9ff;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

.timeline-date {
    font-size: 0.9rem;
    color: #00d9ff;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 0.9rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.project-card {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #00d9ff;
}

.project-card i {
    font-size: 2.5rem;
    color: #00d9ff;
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #00d9ff;
}

.project-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ffffff;
}

.project-card .project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.project-card.expanded .project-details {
    max-height: 500px;
}

.project-card .project-details p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ffffff;
    margin-top: 10px;
}

/* Contact Me Section */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info p {
    margin-bottom: 10px;
}

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

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

form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form input, form textarea {
    padding: 10px;
    border: 1px solid #00d9ff;
    border-radius: 5px;
    background: transparent;
    color: #ffffff;
}

form button {
    padding: 10px;
    background: #00d9ff;
    color: #000000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

form button:hover {
    background: #000000;
    color: #00d9ff;
    box-shadow: 0 0 20px #00d9ff;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    margin-top: 40px;
}

footer a {
    color: #00d9ff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Chatbot Styles */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: #0a043c;
    border: 1px solid #00d9ff;
    border-radius: 10px;
    box-shadow: 0 0 20px #00d9ff;
    display: none;
    flex-direction: column;
    z-index: 1000;
}

#chatbot-header {
    padding: 10px;
    background: #00d9ff;
    color: #000000;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chatbot-close {
    background: none;
    border: none;
    color: #000000;
    font-size: 1.5rem;
    cursor: pointer;
}

#chatbot-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    max-height: 300px;
}

#chatbot-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 8px;
    border-radius: 5px;
    max-width: 80%;
}

.message.user {
    background: #00d9ff;
    color: #000000;
    align-self: flex-end;
}

.message.bot {
    background: #ffffff;
    color: #000000;
    align-self: flex-start;
}

#chatbot-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #00d9ff;
}

#chatbot-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #00d9ff;
    border-radius: 5px;
    background: transparent;
    color: #ffffff;
}

#chatbot-send {
    margin-left: 10px;
    padding: 8px 12px;
    background: #00d9ff;
    color: #000000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background: #00d9ff;
    color: #000000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 20px #00d9ff;
}

/* Media Query for Mobile Devices */
@media (max-width: 768px) {
    /* Navigation */
    .nav-container .links {
        display: none;
    }

    .hamburg {
        display: block;
    }

    .dropdown {
        top: 10vh;
    }

    /* Home Section */
    .main-container {
        flex-direction: column;
        align-items: center;
    }

    .image img.vertical-rectangle {
        width: 80%;
        max-width: 300px;
    }

    .content {
        width: 90%;
        text-align: center;
    }

    /* About Me Section */
    .about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-text {
        min-width: 100%;
    }

    /* Skills Progress Bars */
    .skills-progress {
        width: 100%;
    }

    /* Skills Section */
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .skill-card i {
        font-size: 2rem;
    }

    .skill-card h3 {
        font-size: 1.2rem;
    }

    .skill-card p {
        font-size: 0.8rem;
    }

    /* Projects Section */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .project-card i {
        font-size: 2rem;
    }

    .project-card h3 {
        font-size: 1.2rem;
    }

    .project-card p {
        font-size: 0.8rem;
    }

    /* Timeline Section */
    .timeline-item {
        width: 100%;
        left: 0 !important;
    }

    .timeline-item::before {
        display: none;
    }

    /* Contact Section */
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    form {
        width: 100%;
    }
}