* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #0a192f;
    color: #fff;
}

.container {
    padding: 10px 10%;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: #64ffda;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

body {
    background: #0a192f;
    color: #fff;
}

.container {
    padding: 10px 10%;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: fixed;
    width: 100%;
    padding: 20px 10%;
    background: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: background-color 0.3s ease, padding 0.3s ease; /* Add transition for smooth animation */
}

nav.scrolled {
    background-color: rgba(53, 77, 103, 0.9); /* Change this to your desired color */
    padding: 10px 10%; /* Adjust padding on scroll */
}

.logo {
    font-size: 2.5rem;
    font-weight: 600;
    background: linear-gradient(45deg, #64ffda, #00bcd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeIn 1s ease-in-out; /* Add fade-in animation */
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
    opacity: 0;
    animation: fadeInUp 0.5s ease-in-out forwards; /* Add fade-in-up animation */
}

nav ul li:nth-child(1) {
    animation-delay: 0.2s;
}

nav ul li:nth-child(2) {
    animation-delay: 0.4s;
}

nav ul li:nth-child(3) {
    animation-delay: 0.6s;
}

nav ul li:nth-child(4) {
    animation-delay: 0.8s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-text {
    margin-top: 20%;
    font-size: 30px;
}

.header-text h1 {
    font-size: 60px;
    margin-top: 20px;
}

.header-text h1 span {
    color: #64ffda;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(45deg, #0a192f 25%, #112240 25%, #112240 50%, #0a192f 50%, #0a192f 75%, #112240 75%, #112240);
    background-size: 60px 60px;
    animation: moveBackground 4s linear infinite;
    opacity: 0.1;
    z-index: -1;
}

@keyframes moveBackground {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 60px;
    }
}

.card {
    background: rgba(17, 34, 64, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 10px;
    padding: 30px;
    margin: 20px 0;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid #64ffda;
    color: #64ffda;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.btn:hover {
    background: rgba(100, 255, 218, 0.1);
}

@media only screen and (max-width: 600px) {
    .header-text {
        margin-top: 100%;
        font-size: 16px;
    }

    .header-text h1 {
        font-size: 30px;
    }

    nav .logo {
        font-size: 1.8rem;
    }
}


.about-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #64ffda;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.about-card {
    background: rgba(17, 34, 64, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 2.5rem;
    color: #64ffda;
    margin-bottom: 20px;
}

.about-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.about-card p {
    color: #8892b0;
    line-height: 1.6;
}

@media only screen and (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr;
    }

    .about-card {
        margin-bottom: 20px;
    }
}

/* More Section Styles */
.more-section {
padding: 100px 0;
position: relative;
overflow: hidden;
}

.more-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin-top: 50px;
}

.more-item {
background: rgba(17, 34, 64, 0.5);
border-radius: 15px;
padding: 2rem;
position: relative;
overflow: hidden;
cursor: pointer;
transition: all 0.4s ease;
}

.more-item::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(45deg, #64ffda, #00bcd4);
opacity: 0;
transition: 0.4s;
z-index: -1;
}

.more-item:hover::before {
opacity: 0.1;
}

.more-item:hover {
transform: translateY(-10px) scale(1.02);
box-shadow: 0 10px 20px rgba(100, 255, 218, 0.1);
}

.more-item h3 {
font-size: 1.5rem;
margin-bottom: 1rem;
position: relative;
padding-left: 2rem;
}

.more-item h3::before {
content: '▹';
position: absolute;
left: 0;
color: #64ffda;
}

.more-item p {
color: #8892b0;
line-height: 1.6;
}

.skill-bar {
width: 100%;
height: 8px;
background: rgba(100, 255, 218, 0.1);
border-radius: 4px;
margin: 15px 0;
position: relative;
overflow: hidden;
}

.skill-progress {
position: absolute;
top: 0;
left: 0;
height: 100%;
background: #64ffda;
animation: skillProgress 1.5s ease-in-out;
}

@keyframes skillProgress {
from { width: 0; }
to { width: var(--progress); }
}

.floating-shapes {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: -1;
overflow: hidden;
}

.shape {
position: absolute;
border: 2px solid rgba(100, 255, 218, 0.1);
border-radius: 50%;
animation: float 6s infinite;
}

.shape:nth-child(1) {
width: 60px;
height: 60px;
top: 20%;
left: 10%;
animation-delay: 0s;
}

.shape:nth-child(2) {
width: 80px;
height: 80px;
top: 60%;
right: 10%;
animation-delay: 2s;
}

.shape:nth-child(3) {
width: 40px;
height: 40px;
bottom: 20%;
left: 20%;
animation-delay: 4s;
}

@keyframes float {
0% { transform: translateY(0) rotate(0deg); }
50% { transform: translateY(-20px) rotate(180deg); }
100% { transform: translateY(0) rotate(360deg); }
}

@media only screen and (max-width: 768px) {
.more-grid {
grid-template-columns: 1fr;
}
}


.work-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.05);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px;
}

.project-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    position: relative;
    width: 100%;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-details {
    text-align: center;
    color: white;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-card:hover .project-details {
    transform: translateY(0);
}

.project-details h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.project-tech {
    margin: 15px 0;
}

.project-tech span {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 15px;
    margin: 0 5px;
    font-size: 0.8rem;
}

.project-link {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.project-link:hover {
    background: #0056b3;
}

/* Animation classes */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}


.contact-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.contact-info {
    padding-right: 30px;
}

.contact-desc {
    color: #888;
    margin: 20px 0 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 24px;
    color: #007bff;
    margin-right: 20px;
    margin-top: 5px;
}

.contact-item h3 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    color: #fff;
}

.contact-item p {
    margin: 0;
    color: #888;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #007bff;
    transform: translateY(-3px);
}

/* Form Styles */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    background: transparent;
    border: none;
    border-bottom: 2px solid #555;
    outline: none;
    transition: 0.3s;
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 16px;
    color: #555;
    pointer-events: none;
    transition: 0.3s;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -20px;
    font-size: 12px;
    color: #007bff;
}

.form-group .focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: 0.3s;
}

.form-group input:focus ~ .focus-border,
.form-group textarea:focus ~ .focus-border {
    width: 100%;
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.submit-btn {
    background: #007bff;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    overflow: hidden;
    position: relative;
}

.submit-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.submit-btn i {
    transition: 0.3s;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Map Styles */
.map-container {
    margin-top: 80px;
    padding: 0 20px;
}

.map-wrapper {
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .contact-form {
        padding: 30px 20px;
    }

    .map-wrapper {
        height: 300px;
    }
}


.footer {
    position: relative;
    background: #0f1624;
    padding: 100px 0 30px;
    color: #fff;
    overflow: hidden;
}

/* Animated Waves */
.footer-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave {
    position: absolute;
    opacity: 0.4;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 88.7'%3E%3Cpath d='M800 56.9c-155.5 0-204.9-50-405.5-49.9-200 0-250 49.9-394.5 49.9v31.8h800v-.2-31.6z' fill='%23007bff'/%3E%3C/svg%3E");
    animation: wave 25s linear infinite;
}

#wave1 {
    z-index: 1000;
    opacity: 0.2;
    animation: wave 30s linear infinite;
}

#wave2 {
    z-index: 999;
    opacity: 0.2;
    animation: wave2 15s linear infinite;
}

#wave3 {
    z-index: 998;
    opacity: 0.2;
    animation: wave 20s linear infinite;
}

#wave4 {
    z-index: 997;
    opacity: 0.2;
    animation: wave2 25s linear infinite;
}

@keyframes wave {
    0% { transform: translateX(0); }
    50% { transform: translateX(-25%); }
    100% { transform: translateX(-50%); }
}

@keyframes wave2 {
    0% { transform: translateX(0); }
    50% { transform: translateX(25%); }
    100% { transform: translateX(50%); }
}

/* Footer Content */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #007bff;
}

.footer-section p {
    color: #888;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #888;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-section ul li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
    padding-left: 20px;
}

.footer-section ul li a:hover::before {
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-hover:hover {
    background: #007bff;
    transform: translateY(-5px);
}

.footer-subscribe {
    display: flex;
    margin-top: 20px;
}

.footer-subscribe input {
    padding: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px 0 0 25px;
    color: #fff;
    flex-grow: 1;
}

.footer-subscribe button {
    padding: 0 20px;
    border: none;
    background: #007bff;
    color: #fff;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.footer-subscribe button:hover {
    background: #0056b3;
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    z-index: 1;
    margin-top: 60px;
}

.footer-border {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    color: #888;
}

.footer-copyright i {
    color: #ff4d4d;
    margin: 0 5px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }

    .footer-copyright {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}
