/* General Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    scroll-behavior: smooth;
    list-style: none;
}

body {
    background-color: #f4f4f4;
}

section {
    min-height: 100vh;
    padding: 8rem 12% 4rem;
}

.section-title {
    text-align: center;
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 300;
    color: #666;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 3rem;
    border: 2px solid black;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    text-wrap: nowrap;
    transition: 0.3s ease-in-out;
    background-color: white;
    color: black;
}

.btn:hover {
    background-color: black;
    color: white;
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Header */
header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translate(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 3rem;
    z-index: 1000;
}

.logo {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-wrap: nowrap;
    transition: 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    position: relative;
    color: white;
    font-weight: 300;
}

.nav-links li a::before {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 3px;
    border-radius: 1rem;
    transition: width 0.3s ease-in-out;
    background: linear-gradient(to right, #009dff, #ff00ff);
}

.nav-links li a:hover::before {
    width: 100%;
}

.visit-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 3rem;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    text-wrap: nowrap;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right, #ff00ff, #009dff);
}

.visit-btn:hover {
    transform: scale(1.05);
}

#menu-icon {
    font-size: 2rem;
    color: white;
    display: none;
    cursor: pointer;
}

/* Home Section */
.home {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-container {
    display: flex;
    gap: 5rem;
    align-items: center;
    justify-content: center;
}

.home-container img {
    width: 25vw;
    max-width: 350px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.info-box {
    display: flex;
    flex-direction: column;
}

.info-box h3 {
    font-size: 1.8rem;
    font-weight: 500;
}

.info-box h1 {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.2;
}

.info-box span {
    background: linear-gradient(to right, #ff00ff, #009dff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-size: 2.2rem;
    font-weight: 600;
}

.info-box .bio {
    margin-top: 1rem;
    max-width: 500px;
    font-size: 1rem;
    color: #333;
}

.socials {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.socials a i {
    font-size: 2.5rem;
    color: black;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.socials a i:hover {
    transform: scale(1.1);
    color: #ff00ff;
}

/* New About Section Styles */
.about {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-content {
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
}

/* Style link the about section */
.about-content .about-link {
    color: #333;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #009dff; /* Blue from your gradient */
    text-decoration-thickness: 2px;
    transition: color 0.3s ease;
}

.about-content .about-link:hover {
    color: #ff00ff; /* Magenta from your gradient on hover */
}


/* Skills & Expertise Section */
.experience .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.grid-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 2rem;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-card:hover {
    transform: translateY(-10px);
    background-color: black;
    color: white;
    border-color: black;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.grid-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #009dff, #ff00ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.grid-card span {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.grid-card:hover span {
    color: white;
    background: none;
}

.grid-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    text-align: left;
}

.grid-card p strong {
    font-weight: 600;
    color: #333;
}

.grid-card:hover p,
.grid-card:hover p strong {
    color: #eee;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 2rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    transition: 0.3s ease-in-out;
}

.project-card:hover {
    transform: scale(1.03);
    background-color: black;
    color: white;
    border-color: black;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid #eee;
}

.project-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

.project-card:hover .btn {
    border-color: white;
    color: white;
}

.project-card:hover .btn:hover {
    background-color: white;
    color: black;
}

/* Contact Section */
.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form .input-group {
    position: relative;
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.5rem 1.5rem 1.5rem 4rem;
    border-radius: 3rem;
    border: 2px solid #aaa;
    font-size: 1rem;
    background-color: #fff;
}

.contact-form textarea {
    border-radius: 2rem;
    min-height: 150px;
    resize: vertical;
}

.contact-form i {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #555;
}

.contact-form textarea ~ i {
    top: 1.8rem;
    transform: translateY(0);
}

/* Footer */
footer {
    padding: 4rem 12% 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem; /* Reduced gap */
}

footer ul {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 1rem;
}

footer ul li a {
    color: black;
    font-weight: 500;
}

.copyright {
    color: #555;
    font-size: 0.9rem;
}

/* New credit style */
.credit {
    font-size: 0.8rem;
    color: #777;
    margin-top: 0.5rem;
}
.credit a {
    color: #555;
    font-weight: 500;
}


/* Scroll To Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(to right, #ff00ff, #009dff);
    color: white;
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    section {
        padding: 8rem 8% 4rem;
    }
    .home-container {
        flex-direction: column;
        text-align: center;
    }
    .info-box {
        align-items: center;
    }
    .experience .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 3rem;
    }

    header {
        justify-content: space-between;
        width: 90%;
        padding: 0.5rem 1rem;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: 1rem;
        width: 100%;
        padding: 1rem 0;
        background: rgba(0, 0, 0, 0.9);
        border-radius: 1rem;
        flex-direction: column;
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }
    
    .nav-links.active {
        max-height: 300px;
    }

    .nav-links li {
        padding: 0.5rem;
    }

    #menu-icon {
        display: block;
    }

    .visit-btn {
        display: none;
    }
    
    .home-container img {
        width: 40vw;
    }

    .info-box h1 {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 6rem 5% 3rem;
    }
    .info-box h1 {
        font-size: 2.5rem;
    }
    .info-box span {
        font-size: 1.8rem;
    }
    .project-card {
        padding: 1.5rem;
    }
}