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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

/* Dark Mode */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.dark-mode .project-item, .dark-mode .certification-item {
    background-color: #1e1e1e;
    color: #ffffff;
}

.dark-mode .navbar ul li a {
    color: #ffffff;
}

.dark-mode .hero-content {
    background: rgba(0, 0, 0, 0.7);
}

/* Main Container */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Typewriter Effect Styling */
#header-title, #header-subtitle {
    overflow: hidden; /* Ensures text doesn't overflow */
    white-space: nowrap; /* Keeps text on a single line */
    border-right: 2px solid #f0a500; /* Cursor effect */
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #f0a500; } /* Cursor color */
}

/* Header */
header {
    width: 100%;
    padding: 20px;
    background-color: #1c3b70;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.logo h1 {
    font-size: 1.8rem;
}

.logo p {
    font-size: 0.9rem;
    margin-top: 5px;
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li {
    margin-left: 20px;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    padding: 10px;
    transition: 0.3s ease;
}

.navbar ul li a:hover {
    background-color: #f0a500;
    border-radius: 5px;
}

.active {
    background-color: #f0a500;
    border-radius: 5px;
}

/* Hero Section */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 100px 20px;
    background :rgba(0, 0, 0, 0.5)
}

.hero-img {
    width: 300px;
    border-radius: 50%;
    margin-right: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Add fade-in-out animation */
@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    75% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.hero-text {
    text-align: left;
    opacity: 0; /* Initial state hidden */
    animation: fadeInOut 6s infinite; /* 6s duration, infinite loop */
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    opacity: 1;
}

.cta-btn {
    background-color: #f0a500;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease;
}

.cta-btn:hover {
    background-color: #d48800;
}

/* General Video Background Styling */
.video-background {
    position: relative;
    overflow: hidden;
    color: #fff;
}

.video-background .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-background .content {
    position: relative;
    z-index: 1;
    padding: 3rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
    border-radius: 10px;
}

.video-background h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.video-background p {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .video-background h2 {
        font-size: 2rem;
    }

    .video-background p {
        font-size: 1rem;
    }
}

/* About Section */
.section {
    padding: 100px 20px;
    text-align: center;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-container h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Carousel Container */
.carousel-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    max-width: 800px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.carousel-item {
    min-width: 300px;
    flex: 0 0 300px;
    margin: 20px;
    background-color: #ffffff;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    scroll-snap-align: center;
    transition: transform 0.3s ease;
}

.carousel-item:hover {
    transform: scale(1.05);
}

.carousel-item h3 {
    font-size: 1.8rem;
    color: #1c3b70;
    margin-bottom: 10px;
}

.carousel-item p {
    font-size: 1rem;
    color: #333;
}

/* Carousel Buttons */
.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.carousel-container::before {
    left: 10px;
}

.carousel-container::after {
    right: 10px;
}


/* Projects Section */
.project-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.project-item {
    background-color: #ffffff;
    margin: 10px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
}

.project-item:hover {
    transform: scale(1.05);
}

.project-item h3 {
    font-size: 1.5rem;
    color: #1c3b70;
    margin-bottom: 10px;
}

.project-link {
    color: #1c3b70;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.project-link:hover {
    color: #f0a500;
}

/* Certifications Section */
.certification-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 50px 0;
}

.certification-item {
    background-color: #ffffff;
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: 0.3s ease;
}

.certification-item:hover {
    transform: scale(1.05);
}

.certification-img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.certification-item h3 {
    font-size: 1.5rem;
    color: #1c3b70;
    margin-bottom: 10px;
}

.certification-item p {
    font-size: 1rem;
    color: #333;
}

/* Contact Section */
.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form label {
    text-align: left;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.send-btn {
    background-color: #1c3b70;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.send-btn:hover {
    background-color: #f0a500;
}

/* Style for Social Icons */
.social-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    font-size: 30px;
    color: #333;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #007bff; /* Change this color for hover effect */
}

/* Footer */
footer {
    background-color: #1c3b70;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* General Styles for mobile responsiveness */
@media screen and (max-width: 768px) {
    /* Adjust header logo and text */
    .logo h1 {
        font-size: 1.4rem;
    }
    .logo p {
        font-size: 0.7rem;
    }

    /* Navbar: Stack items vertically for mobile */
    .navbar ul {
        flex-direction: column;
        align-items: center;
    }

    .navbar ul li {
        margin: 10px 0;
    }

    /* Hero Section: Adjust for smaller screens */
    .hero-content {
        flex-direction: column;
        padding: 50px 20px;
    }

    .hero-img {
        width: 150px;
        margin-bottom: 20px;
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    /* Adjust button size */
    .cta-btn {
        font-size: 1rem;
        padding: 8px 16px;
    }

    /* Certification Gallery on Mobile */
    .certification-gallery {
        flex-direction: column;
        align-items: center;
    }

    .certification-item {
        width: 90%;
    }

    /* Project Gallery on Mobile */
    .project-gallery {
        flex-direction: column;
        align-items: center;
    }

    .project-item {
        width: 90%;
        margin: 20px 0;
    }

    /* Footer Adjustments */
    footer {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    /* Further reduce font sizes for smaller mobile screens */
    .hero-text h2 {
        font-size: 1.4rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }

    .cta-btn {
        font-size: 0.9rem;
    }

    /* Adjust project and certification image sizes */
    .project-item,
    .certification-item {
        width: 100%;
    }

    /* Social Icons Size Reduction */
    .social-link {
        font-size: 25px;
    }
}
