 /* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00B5E2;
    --secondary-color: #4caf50;
    --background-color: #121212;
    --text-color: #e0e0e0;
    --header-text-color: #f5f5f5;
    --light-grey: #b0b0b0;
    --navbar-bg: #1c1c1c;
    --section-bg-odd: #1f1f1f;
    --section-bg-even: #2a2a2a;
}
/* Loading Screen Styles */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000; /* Black background */
    color: #ffffff; /* White text */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's above everything */
}

/* Loading Content */
.loading-content {
    text-align: center;
    margin-top: 50px;
}

/* Spinner Styling */
.spinner {
    margin: 20px auto;
    width: 80px; /* Larger spinner for better visibility */
    height: 80px;
    border: 8px solid #ffffff;
    border-top: 8px solid blue; /* Green accent color */
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite; /* Smooth animation */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); /* Shadow for depth */
}

/* Keyframe Animation for Spinner */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Fade-in Effect for Loading Content */
.loading-content {
    animation: fadeIn 1s ease-in-out;
}

/* Keyframe Animation for Fade-in */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Base Styles */
body, html {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--background-color);
    height: 100%;
    width: 100%;
    scroll-behavior: smooth;
}

.container {
    width: 85%;
    margin: 0 auto;
}

h1, h2, h3 {
    font-weight: 600;
    color: var(--header-text-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

/* General Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--navbar-bg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background-color 0.3s ease-in-out, height 0.3s ease-in-out;
    padding: 10px 15px; /* Reduced padding for mobile compatibility */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}



/* Nav Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px; /* Reduced gap for compact layout */
    transition: all 0.3s ease-in-out;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem; /* Smaller font size for mobile */
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: color 0.3s, transform 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}
/* Hamburger Menu (hidden by default on larger screens) */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger-menu div {
    width: 30px;
    height: 4px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Mobile Menu Styling */
@media (max-width: 768px) {
    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex;
    }

    /* Hide nav links by default on mobile */
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 20px;
        position: absolute;
        top: 60px; /* Adjust to navbar height */
        left: 0;
        width: 100%;
        background-color: #333;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    /* Show nav links when hamburger menu is active */
    .nav-links.active {
        display: flex;
    }

    /* Adjust link font size and center align on mobile */
    .nav-links a {
        font-size: 1.2rem;
        text-align: center;
        padding: 10px;
    }

    /* Close menu when a link is clicked */
    .nav-links a:hover,
    .nav-links a:focus {
        background-color: #444;
    }
}

/* Styling for the active hamburger (transform into a cross on click) */
.hamburger-menu.active div:nth-child(1) {
    transform: rotate(45deg);
    transform-origin: 5px 5px;
}

.hamburger-menu.active div:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active div:nth-child(3) {
    transform: rotate(-45deg);
    transform-origin: 5px 5px;
}
/* Section Styling */
.section {
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}

.section:nth-child(odd) {
    background-color: var(--section-bg-odd);
}

.section:nth-child(even) {
    background-color: var(--section-bg-even);
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--header-text-color);
    font-weight: 600;
}

.section p {
    font-size: 1.125rem;
    color: var(--light-grey);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 40px;
}

/* Hero Section */
#home {
    position: relative;
    background: url('https://www.example.com/your-new-background.jpg') no-repeat center center fixed;
    background-size: cover;
    padding: 100px 0;
    text-align: center;
    z-index: 1;
}

#home::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.example.com/animated-background.gif') no-repeat center center fixed;
    background-size: cover;
    animation: backgroundAnimation 30s linear infinite;
    z-index: -1;
}

#home .intro {
    color: #ffffff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

#home h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffffff;
}

#home p {
    font-size: 1.5rem;
    color: #ffffff;
}

/* Global Section Styling */
.section {
    background-color: #121212; /* Dark background for dark theme */
    color: #fff; /* White text for contrast */
    padding: 50px 0;
}

/* Container Styling */
.container {
    width: 80%;
    margin: 0 auto;
}

/* About Content Layout */
.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 30px;
    flex-wrap: wrap;
}

/* Profile Image Styling */
.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 4px solid blue; /* Green border for style */
}

/* About Text Styling */
.about-text {
    max-width: 600px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Arial', sans-serif;
    color: white; /* Green color for emphasis */
    text-transform: uppercase;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
    color: white; /* Slightly lighter text color for readability */
}

/* Add subtle hover effect to paragraphs */
.about-text h2:hover {
    color: #fff;
    transition: color 0.3s ease-in-out;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-pic {
        width: 150px;
        height: 150px;
    }

    .about-text {
        max-width: 100%;
    }
}


/* Skills Section */
#skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 50px 0;
    background-color: #1f1f1f; /* Dark background for the section */
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

.skills-list li {
    background: linear-gradient(145deg, #1c1c1c, #292929); /* Subtle gradient effect */
    color: #e0e0e0;
    padding: 20px 30px;
    border-radius: 15px;
    font-size: 1.125rem;
    font-weight: 500;
    text-align: center;
    min-width: 150px; /* Ensure consistent sizing */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.6), -4px -4px 10px rgba(255, 255, 255, 0.05);
}

.skills-list li:hover {
    transform: translateY(-10px) scale(1.05); /* Lift and scale effect */
    background: linear-gradient(145deg, #00B5E2, #007B9B); /* Brighter hover effect */
    color: #ffffff;
    box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.8), -6px -6px 15px rgba(255, 255, 255, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .skills-list li {
        min-width: 100px; /* Adjust sizing for smaller screens */
        padding: 15px 20px;
    }
}
/* Services Section Styling */
#services {
    padding: 100px 0;
    background-color: #1c1c1c; /* Dark background for contrast */
    color: #e0e0e0; /* Light text for readability */
    text-align: center;
}

#services .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#services .section-header {
    margin-bottom: 50px;
}

#services .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white; /* Cyan color for section title */
    margin-bottom: 10px;
}

#services .section-subtitle {
    font-size: 1.125rem;
    color: #b0b0b0; /* Softer grey for subtitle */
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Services List Styling */
.services-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0;
    margin: 0;
}

.service-item {
    background-color: #2a2a2a; /* Slightly lighter background for cards */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.service-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f5f5f5;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 1rem;
    color: #b0b0b0;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    #services .section-title {
        font-size: 2rem;
    }

    #services .section-subtitle {
        font-size: 1rem;
    }

    .service-item h3 {
        font-size: 1.25rem;
    }

    .service-item p {
        font-size: 0.9rem;
    }
}
/* Testimonials Section Styling */
#testimonials {
    padding: 80px 0;
    background-color: #f8f9fa; /* Light grey background */
    text-align: center;
    color: #333;
}

#testimonials .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#testimonials h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #343a40; /* Dark title */
    margin-bottom: 70px;
    position: relative;
}

#testimonials h2::after {
    content: '';
    width: 100px;
    height: 4px;
    background-color: #00B5E2; /* Cyan accent */
    display: block;
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Flip Card Container */
.testimonial {
    perspective: 1000px; /* Perspective for 3D effect */
    width: 300px;
    height: 200px;
    margin: 20px auto;
    display: inline-block;
    position: relative;
}

.testimonial .card {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transition: transform 0.6s ease;
}

.testimonial:hover .card {
    transform: rotateY(180deg); /* Flipping effect */
}

/* Front Side of Card */
.card .front,
.card .back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden; /* Hides the back when front is visible */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card .front {
    background-color: #ffffff; /* White background for front */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    font-weight: bold;
    color: #007BFF; /* Highlighted name color */
    padding: 20px;
}

.card .back {
    background-color: #00B5E2; /* Cyan background for back */
    transform: rotateY(180deg);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    padding: 20px;
    text-align: center;
    border: 1px solid #ddd;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonial {
        width: 250px;
        height: 180px;
    }

    .card .front,
    .card .back {
        font-size: 0.9rem;
        padding: 15px;
    }
}


/* Projects Section */
#projects {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
    padding: 50px 0;
    background-color: #1f1f1f; /* Dark background for the section */
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid layout */
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px; /* Add some padding for smaller screens */
}

.projects-list li {
    background: linear-gradient(145deg, #1e1e1e, #292929); /* Subtle gradient for cards */
    color: #e0e0e0;
    padding: 25px;
    border-radius: 12px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.6), -4px -4px 10px rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects-list li:hover {
    transform: translateY(-10px) scale(1.03); /* Lift and scale on hover */
    box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.8), -6px -6px 20px rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, #00B5E2, #007B9B); /* Bright gradient on hover */
    color: #ffffff; /* Change text color on hover */
}

.projects-list li h3 {
    font-size: 1.5rem;
    color: var(--primary-color); /* Highlight project title */
    margin-bottom: 10px;
}

.projects-list li p {
    font-size: 1rem;
    line-height: 1.6;
    color: #b0b0b0; /* Softer text color for descriptions */
}

.projects-list li .btn {
    margin-top: auto;
    padding: 10px 15px;
    border: 1px solid #00B5E2;
    color: #00B5E2;
    text-decoration: none;
    font-size: 0.875rem;
    text-align: center;
    border-radius: 5px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.projects-list li .btn:hover {
    background-color: #00B5E2;
    color: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .projects-list {
        grid-template-columns: 1fr; /* Single-column layout for smaller screens */
    }

    .projects-list li {
        padding: 20px;
    }
}
/* Contact Section Styling */
#contact {
    background-color: #f4f7f9; /* Light background for clarity and calmness */
    padding: 50px 0;
    text-align: center;
    margin-top: 40px; /* Reduce space at the top to fill the gap from removed section */
}

/* Container for Centering Content */
.container {
    max-width: 800px; /* Reduced the max-width for a more compact feel */
    margin: 0 auto;
    padding: 0 20px;
}

/* Heading Styling */
h2 {
    font-size: 32px; /* Adjusted size for better hierarchy */
    font-family: 'Arial', sans-serif;
    color: #333333; /* Dark color for contrast */
    margin-bottom: 20px;
    text-transform: uppercase; /* To make it bold and authoritative */
}

/* Paragraph Styling */
p {
    font-size: 18px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 20px; /* Increased spacing between paragraph and links */
    max-width: 700px;
    margin: 0 auto;
}

/* Email Link Styling */
a {
    color: #4CAF50; /* Green for action and trust */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

a:hover {
    color: #2E8B57; /* Darker green on hover for emphasis */
}

/* Social Links Styling */
.social-links {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.social-links li {
    margin: 0 15px;
    display: inline-block;
}

.social-links a {
    font-size: 24px;
    color: #333333;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #4CAF50; /* Green on hover to create a sense of action */
    transform: scale(1.1); /* Slight scale for a more engaging effect */
}

/* Hover Effects */
.social-links a:hover {
    transform: translateY(-5px); /* Slight upward movement for more interactivity */
}

/* CTA Button Styling (optional, if you'd like a button instead of plain links) */
.cta-button {
    background-color: #4CAF50;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    margin-top: 30px; /* Increased margin to space it out from social links */
}

.cta-button:hover {
    background-color: #388E3C; /* Darker green for hover effect */
}

/* Responsive Styling */
@media (max-width: 768px) {
    h2 {
        font-size: 28px; /* Slightly smaller on mobile */
    }

    p {
        font-size: 16px;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-links li {
        margin-bottom: 10px;
    }

    /* Reduce container width on small screens */
    .container {
        padding: 0 15px;
    }
}


/* Footer */
footer {
    background-color: var(--navbar-bg);
    color: var(--text-color);
    padding: 40px 0;
    text-align: center;
}

footer .social-media-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

footer .social-media-icons a {
    color: var(--text-color);
    font-size: 20px;
    transition: color 0.3s ease;
}

footer .social-media-icons a:hover {
    color: var(--primary-color);
}

/* Footer Styles for Mobile Screens */
@media (max-width: 768px) {
    footer {
        padding: 20px 15px; /* Optimized padding for a sleeker look */
    }

    footer .social-media-icons {
        gap: 10px; /* Adjusted gap for better spacing */
        flex-direction: column; /* Ensure icons are displayed in a row */
        align-items: center; /* Vertically center the icons */
        display:flex
    }

    footer .social-media-icons a {
        font-size: 16px; /* Scaled icon size for consistency */
    }

    footer p {
        font-size: 14px; /* Consistent and readable text size */
        margin-top: 8px; /* Tighter spacing for a cleaner look */
        text-align: center; /* Center-align footer text for better aesthetics */
    }
}


/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes backgroundAnimation {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    body, html {
        font-size: 16px;
    }

    .navbar .container {
        flex-direction: column;
    }

    .nav-links {
        flex-direction: column;
        margin-top: 20px;
    }

    .about-text {
        text-align: center;
    }

    .profile-pic {
        margin: 0 auto 20px;
    }

    .skills-list, .projects-list {
        flex-direction: column;
        align-items: center;
    }

    footer .social-media-icons {
        flex-direction: column;
    }
}
