:root {
    --indigo-dark: #2c3e50;
    --indigo-medium: #34495e;
    --indigo-light: #4a69bd;
    --text-color: #ecf0f1;
    --link-hover: #e74c3c;
    --bg-color: #2c3e50;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--indigo-dark);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    border-bottom: 5px solid var(--indigo-light);
}

    header h1 {
        margin: 0;
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    header p {
        margin: 0.5rem 0 1.5rem;
        font-size: 1.2rem;
    }

/* Styling for the tag line */
.header-tagline {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.5rem 0 1.5rem;
}

.highlight {
    color: var(--indigo-light);
    font-weight: bold;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

header nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

    header nav a:hover {
        color: var(--link-hover);
    }

/* Sections */
.section {
    padding: 1.5rem 0;
}

.section h2 {
    margin-top: 0;
    color: var(--indigo-light);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), var(--indigo-light), rgba(0, 0, 0, 0));
    margin: 0.5rem 0;

}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
}

.profile-photo {
    flex: 0 0 300px;
}

.profile-photo img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 4px solid var(--indigo-light);
}

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

.about-text h2 {
    text-align: left;
}

.certificate-container {
    margin-top: 1rem;
    text-align: center;
}

.certificate-image {
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

    .certificate-image:hover {
        transform: scale(1.05);
    }

/* Experience Section */
.job-entry {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--indigo-medium);
}

.job-entry:last-child {
    border-bottom: none;
}

.job-entry h3 {
    color: var(--indigo-light);
    margin-top: 0;
}

.date {
    font-style: italic;
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.job-entry ul {
    padding-left: 1.5rem;
}

.job-entry li {
    margin-bottom: 0.5rem;
}

/* Projects Section - Accordion */
.project-entry {
    margin-bottom: 1rem;
    border: 1px solid var(--indigo-medium);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--indigo-medium);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.project-header {
    padding: 1rem 1.5rem;
    background-color: var(--indigo-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.project-header:hover {
    background-color: #253340;
}

.project-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--indigo-light);
}

.accordion-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
    color: var(--indigo-light);
}

.project-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.project-content.active {
    padding: 1rem 1.5rem 1.5rem;
    max-height: 800px; /* Increased to accommodate video */
}

.project-content p {
    margin: 0;
    line-height: 1.6;
}

.project-image-container {
    margin: 1rem 0;
    text-align: center;
}

.project-image {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--indigo-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}



.video-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 9 / 16;
    margin: 1.5rem auto;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--indigo-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

    .video-container iframe {
        width: 100%;
        height: 100%;
        display: block;
        border: 0;
    }

.video-script {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border-left: 4px solid var(--indigo-light);
    border-radius: 6px;
}

    .video-script h4 {
        margin-bottom: 0.75rem;
        color: var(--indigo-light);
    }

    .video-script ul {
        margin-left: 1.25rem;
        margin-bottom: 1rem;
    }

    .video-script p {
        margin-bottom: 0.75rem;
    }




/* Articles Section */
.articles-list {
    text-align: center;
    margin-top: 2rem;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #0e76a8;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.linkedin-link:hover {
    background-color: #004d6e;
}

.linkedin-link img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

/* Contact Form */
.contact-intro {
    max-width: 760px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
    color: #ecf0f1;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--indigo-medium);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #7f8c8d;
    border-radius: 5px;
    background-color: #34495e;
    color: #ecf0f1;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--indigo-light);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #3f5a9f;
}

#form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: var(--indigo-dark);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    border-top: 5px solid var(--indigo-light);
    margin-top: 40px;
}

/* Scroll to top button */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--indigo-light);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.3s;
}

#scrollToTopBtn:hover {
    background-color: #3f5a9f;
    transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .profile-photo {
        flex: 0 0 auto;
        margin: 0 auto;
    }
    
    header nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .project-header {
        padding: 0.75rem 1rem;
    }
    
    .project-header h3 {
        font-size: 1.1rem;
    }
}

@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
        text-align: left;
        gap: 40px;
    }

    .profile-photo {
        flex-shrink: 0;
    }
}

/* Improve visited link contrast */
.article-link:visited {
    color: #8e44ad; /* Purple color for visited links */
    border-bottom: 2px solid #8e44ad;
}

.article-link {
    color: #3498db;  /*Standard link color */
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

   /* .article-link:hover {
        color: #2980b9;  Darker blue on hover 
        border-bottom: 2px solid #2980b9;
    }*/

/* Articles Accordion Styles */
.articles-accordion {
    text-align: left;
}

.article-entry {
    margin-bottom: 1rem;
    border: 1px solid var(--indigo-medium);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--indigo-medium);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-header {
    padding: 1.25rem 1.5rem;
    background-color: var(--indigo-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

    .article-header:hover {
        background-color: #253340;
    }

    .article-header h3 {
        margin: 0;
        font-size: 1.2rem;
        flex: 1;
        color: var(--indigo-light);
    }

    .article-header .article-link {
        color: var(--indigo-light);
        text-decoration: none;
        display: block;
        transition: color 0.3s ease;
    }

        .article-header .article-link:hover {
            color: #5a7bd6;
        }

.article-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

    .article-content.active {
        padding: 1.25rem 1.5rem;
        max-height: 300px;
    }

    .article-content p {
        margin: 0;
        line-height: 1.6;
        color: #ecf0f1;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

        .article-header h3 {
            margin-bottom: 0.5rem;
            font-size: 1.1rem;
        }

    .article-content {
        padding: 0 1rem;
    }

        .article-content.active {
            padding: 1rem;
        }
}

/* Modern Mobile-First Navigation */
.main-nav {
    position: relative;
    margin-top: 1.5rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
   left: 20px;
    top: -0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 30px;
    height: 4px;
    background: var(--text-color);
    position: relative;
    transition: all 0.3s ease;
}

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 30px;
        height: 4px;
        background: var(--text-color);
        transition: all 0.3s ease;
        left: 0;
    }

    .hamburger::before {
        top: -10px;
    }

    .hamburger::after {
        top: 10px;
    }

/* Hamburger animation when active */
.menu-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

    .menu-toggle[aria-expanded="true"] .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .menu-toggle[aria-expanded="true"] .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    justify-content: center;
}

    .nav-menu a {
        color: var(--text-color);
        text-decoration: none;
        font-weight: bold;
        padding: 0.5rem 1rem;
        border-radius: 4px;
        transition: all 0.3s ease;
        position: relative;
    }

        .nav-menu a:hover {
            color: var(--link-hover);
            background: rgba(255, 255, 255, 0.1);
        }

        .nav-menu a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--link-hover);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        .nav-menu a:hover::after {
            width: 80%;
        }

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .container {
        padding: 0 20px;
        position: relative;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--indigo-dark);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        border-top: 2px solid var(--indigo-light);
        z-index: 1000;
    }

        .nav-menu.active {
            display: flex;
        }

        .nav-menu li {
            text-align: center;
        }

        .nav-menu a {
            display: block;
            padding: 1rem 2rem;
            border-radius: 0;
        }

            .nav-menu a::after {
                display: none;
            }

            .nav-menu a:hover {
                background: var(--indigo-medium);
            }
}

/* Smooth scrolling for navigation */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}