/* Global Styles */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background-color: #002F6C;
    scroll-behavior: smooth;
}

.container {

    width: 85%;
    margin: auto;
    max-width: 1200px;
}

h2, h3 {
    font-weight: 600;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

p {
    font-weight: 300;
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #001A48;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar .logo a {
    color: #fff;
    font-size: 2rem;
    text-decoration: none;
    transition: color 0.3s;
}
.Ncontainer {
    width: 85%;
    margin: auto;
    max-width: 1200px;
    display: flex;
    justify-content: space-between; /* Space between logo and nav menu */
    align-items: center; /* Center vertically */
}

.navbar .logo a:hover {
    color: #00FFA3;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #00FFA3;
}

.mobile-menu-icon {
    display: none;
    cursor: pointer;
}

.mobile-menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 4px;
    background: #fff;
    transition: all 0.3s;
}

/* Background Gradient */
.section {
    padding: 100px 0;
}

.home-section {
    background: linear-gradient(135deg, #002F6C, #001A48, #00FFA3);
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Animated Background Circles */
.home-section::before,
.home-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(0, 255, 163, 0.1);
    animation: move 10s infinite alternate;
}

.home-section::before {
    top: -100px;
    right: -100px;
}

.home-section::after {
    bottom: -100px;
    left: -100px;
}

@keyframes move {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(50px, 50px);
    }
}

.home-text h2 {
    font-size: 2.5rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.home-text span {
    color: #00FFA3;
}

.home-text p {
    font-size: 1.2rem;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: 0.5s; /* Delay for the second paragraph */
}

.cta-button {
    padding: 1rem 2rem;
    background-color: #00FFA3;
    color: #002F6C;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 255, 163, 0.3);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    background-color: #009E75;
    box-shadow: 0 15px 25px rgba(0, 255, 163, 0.5);
}

/* Floating Animation */
.cta-button {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Home Image Styles */
.home-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: 1s; /* Delay for the image */
}

.rounded-image {
    width: 300px; /* Adjust as needed */
    height: 300px; /* Adjust as needed */
    border-radius: 50%;
    object-fit: cover; /* Maintain aspect ratio */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Skills Section */
.skills-section {
    background: #001A48;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill {
    background: #002F6C;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.skill:hover {
    background-color: #00FFA3;
    color: #002F6C;
    transform: translateY(-10px);
}

.skill h3 {
    font-size: 1.5rem;
}

.skill p {
    margin-top: 0.5rem;
}

/* Portfolio Section */
.portfolio-section {
    background: #001A48;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background-color: #002F6C;
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

/* Contact Section */
.contact-section {
    background-color: #002F6C;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin: 0.5rem 0;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form button {
    padding: 1rem 2rem;
    background-color: #00FFA3;
    color: #002F6C;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #009E75;
}

/* Footer */
.footer {
    padding: 1rem 0;
    background-color: #002F6C;
    text-align: center;
    color: #ccc;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .home-content {
        flex-direction: column;
        text-align: center;
    }

    .home-image {
        margin-top: 5rem;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-icon {
        display: block;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 10px;
        background-color: #001A48;
        padding: 1rem;
        border-radius: 10px;
    }

    .nav-menu a {
        margin: 0.5rem 0;
    }

    .rounded-image {
        width: 250px; /* Adjust for mobile */
        height: 250px; /* Adjust for mobile */
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Home Section */
.home-section {
    display: flex;
    align-items: center; /* Vertically center the content */
    padding: 60px 0; /* Add some padding for aesthetics */
}

.home-content {
    flex: 1;
    display: flex;
    justify-content: space-between; /* Space out the text and image */
    align-items: center; /* Center align items vertically */
}

.home-text {
    flex: 1;
    max-width: 600px; /* Limit width for better readability */
}

.home-image {
    flex: 1;
    display: flex;
    justify-content: center; /* Center the image */
}

.rounded-image {
    width: 300px; /* Adjust as needed */
    height: 300px; /* Adjust as needed */
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover; /* Maintain aspect ratio */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.social-media {
    margin-top: 20px;
}

.social-icon {
    width: 30px; /* Adjust size as needed */
    margin: 0 10px; /* Space between icons */
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1); /* Grow effect on hover */
}