/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    color: black;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: rgba(252,249,244,255);
    background-color: #fcf9f4;
}

section {
    padding: 100px 20px;
    text-align: center;
    color: white;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.text-gray-700 {
  font-weight: 200;
}

/* Hero Section */
.hero {
    background-image: url('hero-bg.jpg'); /* Replace with a high-quality background image */
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}


.hero-overlay {
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    padding: 0px;
    border-radius: 10px;
}


.hero-title {
    font-size: 4rem;
    margin: 0;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-top: 20px;
}

.scroll-down {
    margin-top: 40px;
    padding: 10px 20px;
    background-color: white;
    color: black;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
}

.scroll-down:hover {
    background-color: black;
    color: white;
}

/* Button Styling */
.button {
    background-color: white;
    color: black;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 30px;
}

.button:hover {
    background-color: black;
    color: white;
}

/* Experience and Education Section */
.experience-item, .education-item {
    margin-bottom: 40px;
}

.experience-item h3, .education-item h3 {
    font-size: 1.75rem;
    margin-bottom: 10px;
    color: black; !important;
    text-align: left;
}

h3 {
    color: black;
}

p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
}

/* Grid Layout for Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* Contact Section */
.social-links a {
    margin: 0 10px;
    color: black;
    text-decoration: none;
}

@media (max-width: 768px) {
    /* Adjust styles for mobile devices */
    .hero-content h1 {
        font-size: 2.5rem;
    }
}


/* Navbar Styling */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000; /* Ensures the navbar stays on top */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Adds a slight shadow */
    color: white;
}

.nav-logo a {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex; /* Change this to flex to show the links by default */
    gap: 20px;
}

/* Show the menu when the 'active' class is added */
.nav-links.active {
    display: flex;
}



.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.nav-links li a:hover {
    background-color: white;
    color: black;
    border-radius: 4px;
}

/* Ensure the hamburger menu button is on top of other elements */
.menu-toggle {
    display: none; /* Initially hidden, only shows on small screens */
    cursor: pointer;
}

/* Adjusting button styles for icon mode */
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 0px; /* Space between buttons */
    margin-top: 0px;
    max-height: 40px;
    margin-bottom: 10px;
}

/* Buttons fixed height and width to avoid movement when switching */
.contact-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px; /* Set a fixed height */
    width: 120px; /* Set a fixed width */
    border-radius: 8px;
    background-color: #2563eb; /* Ensure background color is set */
    color: white;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

/* Adjust icon and text inside the button */
.contact-buttons i {
    font-size: 20px;
    margin-bottom: 10px;
}


/* Responsive Navbar for Mobile Devices */
@media (max-width: 768px) {

    .nav-links {
        display: none; /* Initially hide the menu on mobile */
        position: absolute;
        top: 70px;
        right: 20px;
        background-color: rgba(0, 0, 0, 0.9);
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        width: 200px;
        border-radius: 8px;
        flex-direction: column;
        z-index: 999;
    }

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

    .menu-toggle {
        display: block;
    }

    .contact-button {
        display: inline-flex; /* Use flexbox */
        align-items: center; /* Center content vertically */
        justify-content: center; /* Center content horizontally */
        gap: 0.5rem; /* Add space between icon and text */
    }

    .contact-button i {
        margin-right: 0; /* Remove the right margin from icons */
    }

    .contact-button span {
        display: none; /* Hide text inside the button */
    }
    

    .contact-buttons {
        padding-top: 50px; /* Smaller width in icon mode */
        margin-bottom: 10px;
    }

    .contact-buttons a {
        width: 50px; /* Smaller width in icon mode */
    }

    .contact-buttons a span {
        display: none; /* Hide the text */
    }

    .contact-buttons i {
        margin: 0; /* Remove any margin to avoid misalignment */
    }

}



.hero-video {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}


html {
    scroll-behavior: smooth;
}




/* General Styles for Experience Cards */
.experience-card {
    background-color: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    height: 200px;
}

.experience-card:hover {
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.experience-logo {
    width: 40px;
    height: 40px;
    margin-right: 12px;
}

.experience-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: left;
}

.experience-position {
    font-size: 0.875rem;
    color: #4a5568;
}

.experience-dates {
    font-size: 0.875rem;
    color: #a0aec0;
    text-align: right;
}

.experience-description {
    color: #4a5568;
    margin-bottom: 20px;
}

.experience-tags span {
    background-color: #f0fff4;
    color: #38a169;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 5px;
}

.modal-container {
    background-color: rgba(17, 24, 39, 0.8);
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/*.modal {
    background-color: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    width: 50%;
}*/

.modal h3 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.modal p {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 24px;
}

.modal button {
    background-color: #3182ce;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}

.modal button:hover {
    background-color: #2b6cb0;
}

/* Modal Styles */
.modal {
    position: fixed; /* Ensure it's fixed and stays on top */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark background overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Modal content box */
.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    width: 90%;
    max-width: 600px;
}

/* Close button style */
.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    z-index: 10001;
}


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

/* Timeline Container */
.timeline2 {
    position: relative;
    margin: 0 auto;
    padding: 40px 0;
    max-width: 800px;
    width: 100%;
}

/* Timeline Item */
.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 50px;
    display: flex;
    align-items: flex-start;
}

/* Timeline Item */
.timeline-item2 {
    position: relative;
    margin-bottom: 50px;
    padding-left: 50px;
    display: flex;
    align-items: flex-start;
}

/* Timeline Marker (circle) */
.timeline-item::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: #79c298;
    border-radius: 50%;
    z-index: 1;
}

/* Timeline Marker (circle) */
.timeline-item2::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: #ddd;
    border-radius: 50%;
    z-index: 1;
}

/* Timeline Line */
.timeline-item::after {
    content: "";
    position: absolute;
    max-height: 205px;
    left: 24px;
    top: 0;
    bottom: -50px;
    width: 2px;
    background-color: #ddd;
    z-index: 0;
}

/* Timeline Line */
.timeline-item2::after {
    content: "";
    position: absolute;
    max-height: 205px;
    left: 24px;
    top: 0;
    bottom: -50px;
    width: 2px;
    background-color: #ddd;
    z-index: 0;
}

/* Timeline Content */
.timeline-content {
    background-color: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 400px;
    width: 80%; /* Ensure cards don't stretch beyond 100% */
    font-family: Arial, sans-serif;
}

/* Job Titles */
.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

/* Company Name */
.timeline-content h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #777;
}

/* Dates */
.timeline-content p:first-of-type {
    font-size: 0.9rem;
    color: #49a471;
    margin-bottom: 10px;
}

/* General Text */
.timeline-content p {
    font-size: 1rem;
    color: #333;
}

/* Timeline items that alternate sides */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    padding-right: 50px;
    padding-left: 0;
}

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

.timeline-item:nth-child(even)::after {
    left: auto;
    right: 24px;
}


/* Timeline items that alternate sides */
.timeline-item2:nth-child(even) {
    flex-direction: row-reverse;
    padding-right: 50px;
    padding-left: 0;
}

.timeline-item2:nth-child(even)::before {
    left: auto;
    right: 15px;
}

.timeline-item2:nth-child(even)::after {
    left: auto;
    right: 24px;
}



/* Style for Scroll Down Chevron */
.scroll-down-chevron {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce-smooth 2s infinite ease-in-out;
}

/* Bounce Animation */
@keyframes bounce-smooth {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 10px);
    }
}

/* Style for the SVG Chevron */
.scroll-down-chevron svg {
    width: 40px;
    height: 40px;
    stroke: white; /* You can change this to any color */
}


.hidden {
    display: none;
}



.copy-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-tooltip.show {
    opacity: 1;
}

/* Popup notification styles */
.popup-notification {
    position: fixed;
    background-color: #4CAF50;
    color: white;
    padding: 6px;
    border-radius: 5px;
    font-size: 0.8rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

/* Show the notification */
.popup-notification.show {
    opacity: 1;
    transform: translateY(-6px); /* Smoothly move the popup */
}



/* CSS for icon change */
.read-more-icon {
    cursor: pointer;
    transition: color 0.3s ease;
}

.read-more-icon i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Tappable area expansion for mobile */
.read-more-icon::before {
    content: '';
    position: absolute;
    left: -10px;
    right: -10px;
    top: -5px;
    bottom: -5px;
}



/* Responsive font sizes using clamp */
.responsive-text {
    font-size: clamp(14px, 2vw, 18px);
}

.responsive-heading-1 {
    font-size: clamp(24px, 5vw, 48px);
}

.responsive-heading-2 {
    font-size: clamp(20px, 4vw, 36px);
}

.responsive-heading-3 {
    font-size: clamp(18px, 3vw, 28px);
}





/* Pulse effect for the scroll indicator */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Apply the pulse animation */
.scroll-indicator {
    animation: pulse 1.5s infinite;
    transition: opacity 0.3s ease;
}


/* General text resizing */
.responsive-text {
    font-size: 1.1rem; /* Default size */
}

@media (max-width: 768px) {
    .responsive-text {
        font-size: 1.0rem; /* Medium screens */
    }
}

@media (max-width: 480px) {
    .responsive-text {
        font-size: 0.9rem; /* Small screens */
    }
}
/* General text resizing */
.responsive-text-p {
    font-size: 0.85rem; /* Default size */
}

@media (max-width: 768px) {
    .responsive-text-p {
        font-size: 0.8rem; /* Medium screens */
    }
}

@media (max-width: 480px) {
    .responsive-text-p {
        font-size: 0.7rem; /* Small screens */
    }
}

/* General text resizing */
.responsive-text-b {
    font-size: 1rem; /* Default size */
}

@media (max-width: 768px) {
    .responsive-text-b {
        font-size: 0.95rem; /* Medium screens */
    }
}

@media (max-width: 480px) {
    .responsive-text-b {
        font-size: 0.9rem; /* Small screens */
    }
}

/* General text resizing */
.responsive-text-l {
    font-size: 1.1rem; /* Default size */
}

@media (max-width: 768px) {
    .responsive-text-l {
        font-size: 1.1rem; /* Medium screens */
    }
}

@media (max-width: 415px) {
    .responsive-text-l {
        font-size: 1rem; /* Small screens */
    }
}

@media (max-width: 400px) {
    .responsive-text-l {
        font-size: 0.95rem; /* Small screens */
    }
}

@media (max-width: 380px) {
    .responsive-text-l {
        font-size: 0.9rem; /* Small screens */
    }
}

@media (max-width: 360px) {
    .responsive-text-l {
        font-size: 0.85rem; /* Small screens */
    }
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}
