
/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header Styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #1f1f1f; /* Dark Background */
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #ffdb58;
}

/* Logo */
.logo img {
    height: 50px;
}

/* Navigation Menu */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffdb58; /* Accent Color */
}

/* Call-to-Action Buttons */
.cta {
    display: flex;
    gap: 10px;
}

.contact-button,
.download-resume {
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.contact-button {
    background-color: #ffdb58;
    color: #1f1f1f;
}

.contact-button:hover {
    background-color: white;
    color: #1f1f1f;
}

.download-resume {
    background-color: transparent;
    color: white;
}

.download-resume:hover {
    background-color: white;
    color: #1f1f1f;
}

/* Hamburger Menu for Mobile */
.menu-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        display: none; /* Hide navigation by default on mobile */
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #1f1f1f;
        width: 100%;
        text-align: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    }

    nav.active {
        display: block; /* Show menu when active */
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }

    .menu-icon {
        display: flex; /* Show hamburger menu on mobile */
    }

    /* Transform Hamburger Icon to "X" when Open */
    .menu-icon.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-icon.open span:nth-child(2) {
        opacity: 0;
    }
    .menu-icon.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* CTA Buttons for Mobile */
    .cta {
        display: none; /* Hide buttons on mobile */
    }
}

/* Call to Action Buttons */
.cta {
    display: flex;
    gap: 15px;
}

.contact-button,
.download-resume {
    text-decoration: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contact-button {
    background-color: #ffdb58;
    color: #1f1f1f;
}

.contact-button:hover {
    background-color: #e5c556;
}

.download-resume {
    color: white;
    border: 2px solid #ffdb58;
}

.download-resume:hover {
    background-color: #ffdb58;
    color: #1f1f1f;
}
/* About Me Section */
#about {
    background-color: #1f1f1f; /* Dark background for consistency */
    color: white;
    padding: 60px 50px;
    text-align: center;
}

/* Section Heading */
.about-heading {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffdb58; /* Accent color */
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Content Layout */
.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* Text Section */
.about-text {
    flex: 1;
    max-width: 600px;
    text-align: left;
    line-height: 1.8;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffdb58;
}

.about-text h4 {
    font-size: 1.5rem;
    margin: 20px 0 10px;
    color: #ffdb58;
}

.about-text p {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 15px;
}

.about-text ul {
    margin: 10px 0;
    padding-left: 20px;
}

.about-text ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #f3f3f3;
}

.about-text ul li strong {
    color: #ffdb58;
}

/* Image Section */
.about-image {
    flex: 1;
    max-width: 400px;
    text-align: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
}

/* Animation */
.image-animate {
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Projects Section */
#projects {
    background-color: #1f1f1f; /* Dark background */
    padding: 60px 50px;
    text-align: center;
    color: white;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #ffdb58; /* Accent color */
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Project Card */
.project-card {
    background-color: #2b2b2b;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    border: 2px solid #ffdb58; /* Accent border */
}

.project-card a {
    display: block;
    text-decoration: none;
    color: white;
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card h3 {
    margin: 15px 0 10px;
    font-size: 1.5rem;
    color: #ffdb58; /* Accent color */
}

.project-card p {
    font-size: 1rem;
    padding: 0 15px 20px;
    color: #ccc;
}
/* Services Section */
#services {
    background-color: #1f1f1f; /* Consistent dark background */
    color: white;
    padding: 60px 50px;
    text-align: center;
}

/* Section Heading */
#services h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffdb58; /* Accent color */
    text-transform: uppercase;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

/* Services Content Grid */
.services-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Service Item */
.service-item {
    background-color: #2b2b2b; /* Slightly lighter background for cards */
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    border: 2px solid #ffdb58; /* Accent border */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

/* Service Image */
.service-image {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.service-item:hover .service-image {
    filter: brightness(1);
}

/* Service Title */
.service-item h3 {
    font-size: 1.5rem;
    color: #ffdb58;
    margin-bottom: 10px;
}

/* Service Description */
.service-item p {
    font-size: 1rem;
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 0;
}
/* Contact Section */
#contact {
    background-color: #1f1f1f; /* Consistent dark background */
    color: white;
    padding: 60px 50px;
    text-align: center;
}

/* Section Heading */
.section-heading {
    font-size: 2.5rem;
    color: #ffdb58; /* Accent color */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

/* Contact Content */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

/* Contact Information */
.contact-info {
    flex: 1;
    max-width: 400px;
    text-align: left;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ffdb58;
}

.contact-info p {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-info a {
    color: #ffdb58;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #fff;
}

/* Social Links */
.social-link img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-link img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(255, 219, 88, 0.6);
}

/* Contact Form */
.contact-form {
    flex: 1;
    max-width: 600px;
    background-color: #2b2b2b; /* Slight contrast for form */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.contact-form h3 {
    font-size: 1.8rem;
    color: #ffdb58;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 15px;
    border: 2px solid transparent;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border: 2px solid #ffdb58;
    outline: none;
}

.contact-form button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffdb58;
    color: #1f1f1f;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
    background-color: #e5c556;
    transform: translateY(-3px);
}
/* Footer Section */
footer {
    background-color: #1f1f1f; /* Consistent dark background */
    color: #ddd;
    text-align: center;
    padding: 20px 10px;
    font-size: 1rem;
    border-top: 2px solid #ffdb58; /* Accent border at the top */
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.4);
}

footer p {
    margin: 0;
    line-height: 1.5;
}

footer a {
    color: #ffdb58; /* Accent color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}
/* Loader Container */
/* Loader Container */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000; /* Fallback background color */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

/* Centered Video - Maintain Aspect Ratio */
#loader video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensures video is fully visible without distortion */
    border: none;
    background: #000; /* Background color to fill gaps if video is smaller */
}

/* Fade-out Animation */
.fade-out {
    animation: fadeOut 1s ease forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* Main Content (initially hidden) */
#main-content {
    display: none; /* Hidden until loader completes */
}


/* Responsive Design */
@media (max-width: 768px) {
    footer {
        font-size: 0.9rem;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
        align-items: center;
    }

    .contact-info,
    .contact-form {
        max-width: 100%;
    }

    .social-link img {
        margin-right: 5px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-content {
        grid-template-columns: 1fr; /* Single column layout for small screens */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-text,
    .about-image {
        max-width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 15px 20px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .cta {
        margin-top: 15px;
        flex-direction: column;
        gap: 10px;
    }
}
