/* CSS for a modern, responsive portfolio website with animations and hover effects */
/* Importing Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color: #fff;
    --main-color: #0ef;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1.6rem;
    -webkit-overflow-scrolling: touch;
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

/* Header/Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 3px solid var(--main-color);
    backdrop-filter: blur(8px);
}
.logo {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: default;
    animation: slideRight 1s ease forwards;
}
.navbar a {
    color: var(--text-color);
    font-size: 1.7rem;
    margin-left: 1rem;
    transition: 0.3s;
    animation: slideTop 0.5s ease forwards;
    opacity: 0;
}
.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}
#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}
.navbar-social {
    display: fixed;
    align-items: center;
    gap: 1rem;
    margin-left: 2rem;
}

.navbar-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--main-color);
    background: transparent;
    border: .15rem solid var(--main-color);
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.navbar-social a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 0.5rem var(--main-color);
}

/* Mobile: Stack social icons below menu links, full width, keep circle */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        background: var(--second-bg-color);
        width: 100vw;
        left: 0;
        top: 100%;
        position: absolute;
        display: none;
        z-index: 99;
    }
    .navbar.active {
        display: flex;
    }
    .navbar a {
        margin: 1.5rem 2rem 0 2rem;
        font-size: 2rem;
        display: block;
    }
    .navbar-social{
        width: 100%;
        justify-content: center;
        margin: 2rem 0 1rem 0;
        gap: 1.5rem;
    
    }
   .navbar-social a {
   
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 0.5rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    color: var(--main-color);
    font-size: 1.7rem;
    transition: background 0.3s, color 0.3s;
}
 #menu-icon a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

}


/* Home Section */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    min-height: 100vh;
    background: var(--bg-color);
    padding: 0 9%;
    padding-top: 8rem;
    border-bottom: 1px solid var(--main-color);
}
.home-content {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.home-content h3 {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--main-color);
    animation: slideBottom 1s ease forwards;
    opacity: 0;
}
.home-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 1rem 0;
    animation: slideRight 1s ease forwards;
    opacity: 0;
}
.home-content .about-role {
    font-size: 2rem;
    color: var(--main-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: slideTop 1s ease forwards;
    opacity: 0;
}
.home-content p {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    animation: slideLeft 1s ease forwards;
    opacity: 0;
}
.home-content .social-media {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}
.home-content .social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3.5rem;
    height: 3.5rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 1.7rem;
    color: var(--main-color);
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.home-content .social-media a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}
.home-content .btn {
    margin-top: 0;
    animation: slideTop 1s ease forwards;
    opacity: 0;
}
.home-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--main-color);
    box-shadow: 0 0 2rem var(--main-color);
    background: #fff;
    transition: transform 0.3s;
    animation: zoomIn 1s ease forwards, floatImage 4s ease-in-out infinite;
    opacity: 0;
}
.hero-img:hover {
    transform: scale(1.05) rotate(-2deg);
}

.btn {
    width: 180px;              /* Fixed width for consistency */
    padding: 1.5rem 3rem;      /* Adjusted padding for better proportions */
    font-size: 1.7rem;
    font-weight: 700;
    border-radius: 2rem;
    background: var(--main-color);
    color: var(--second-bg-color);
    border: none;
    box-shadow: 0 0.5rem 1.5rem rgba(0,255,255,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.home-content .btn {
    margin-top: 2rem;          /* Add proper spacing */
    width: 180px;             /* Match other buttons */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .btn {
        width: 160px;
        padding: 1.2rem 2.5rem;
        font-size: 1.5rem;
    }
}

.btn:hover {
    transform: scale(1.05);   /* Add subtle hover effect */
}
.home .btn:hover {
    background: #fff;
    color: var(--main-color);
    box-shadow: 0 1rem 2rem rgba(0,255,255,0.25);
}


/* Responsive for mobile */
@media (max-width: 768px) {
    .home {
        flex-direction: column;
        text-align: center;
        padding: 8rem 3% 2rem;
    }
    .home-img {
        margin-top: 3rem;
    }
    .home-content {
        align-items: center;
    }
    .portfolio-container {
        grid-template-columns: 1fr;
    }
    .team-container {
        flex-direction: column;
        gap: 2rem;
    }
}

/* About Section */
.about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    background: var(--second-bg-color);
    padding: 8rem 9% 8rem;
    border-top: 3px solid var(--main-color);
    border-bottom: 3px solid var(--main-color);
}
.about-img img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--main-color);
    box-shadow: 0 0 2rem var(--main-color);
    background: #fff;
}
.about-content {
    flex: 1;
    text-align: left;
}
.about-content h2 {
    font-size: 4rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}
.about-role {
    font-size: 2.2rem;
    color: var(--main-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.about-content p {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Services Section */
.services {
    border-bottom: 3px solid var(--main-color);
}
.services h2 {
    margin-bottom: 5rem;
    font-size: 3.5rem;
    text-align: center;
    color: var(--main-color);
    letter-spacing: 2px;
}
.services-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 2.5rem;
}
.services-container .services-box {
    flex: 1 1 30rem;
    background: var(--bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: 3px solid var(--main-color);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}
.services-container .services-box:hover {
    border-color: var(--main-color);
    transform: translateY(-1rem) scale(1.03);
    box-shadow: 0 1.5rem 3rem rgba(0,0,0,0.15);
    background: var(--second-bg-color);
}
.services-box i {
    font-size: 5rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    display: block;
}
.services-box h3 {
    font-size: 2.4rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
}
.services-box p {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.5;
}
.services-box .btn {
    margin-top: 1rem;
}

/* Portfolio Section */
.portfolio {
    background: var(--second-bg-color);
    padding: 8rem 9% 8rem;
    margin-bottom: 5rem;
    border-bottom: 3px solid var(--main-color);
}
.portfolio h2 {
    margin-bottom: 4rem;
    font-size: 3.5rem;
    text-align: center;
    color: var(--main-color);
    letter-spacing: 2px;
}
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}
.portfolio-container .portfolio-box {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.3);
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s;
    border: 3px solid var(--main-color);
    height: 300px;
}
.portfolio-container .portfolio-box:hover {
    transform: translateY(-1rem) scale(1.03);
    box-shadow: 0 1.5rem 3rem rgba(0, 238, 255, 0.3);
    z-index: 1;
}
.portfolio-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
.portfolio-box:hover img {
    transform: scale(1.1);
    filter: brightness(0.7) saturate(1.2);
}
.portfolio-container .portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 238, 255, 0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.portfolio-box:hover .portfolio-layer {
    opacity: 1;
    transform: translateY(0);
}
.portfolio-layer h4 {
    font-size: 2.6rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    transition: transform 0.5s ease 0.1s;
}
.portfolio-box:hover .portfolio-layer h4 {
    transform: translateY(0);
}
.portfolio-layer p {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 90%;
    transform: translateY(20px);
    transition: transform 0.5s ease 0.2s;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.portfolio-box:hover .portfolio-layer p {
    transform: translateY(0);
}
.portfolio-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--main-color);
    border-radius: 50%;
    color: var(--second-bg-color);
    font-size: 2rem;
    box-shadow: 0 0 1rem var(--main-color);
    transition: all 0.5s ease 0.3s;
    transform: translateY(40px) scale(0.5);
    opacity: 0;
}
.portfolio-box:hover .portfolio-layer a {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.portfolio-layer a:hover {
    background: #fff;
    color: var(--main-color);
    transform: scale(1.1);
}

/* Team Section */
.team {
    background: var(--bg-color);
    padding: 6rem 9% 6rem;
    border-bottom: 3px solid var(--main-color);
}
.team .heading {
    margin-bottom: 5rem;
    text-align: center;
    color: var(--main-color);
    font-size: 3.5rem;
    letter-spacing: 2px;
}
.team-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 3rem;
    flex-wrap: wrap;
}
.team-member {
    background: var(--second-bg-color);
    border-radius: 2rem;
    padding: 3rem 2rem;
    text-align: center;
    flex: 1 1 30rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 3px solid var(--main-color);
    margin-bottom: 2rem;
}
.team-member:hover {
    transform: translateY(-1rem) scale(1.03);
    box-shadow: 0 1.5rem 3rem rgba(0,0,0,0.15);
}
.team-member img {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 3px solid var(--main-color);
}
.team-member h3 {
    font-size: 2.2rem;
    color: var(--main-color);
    margin-bottom: 0.5rem;
}
.team-member .role {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}
.team-member .bio {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}
.team-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3.5rem;
    height: 3.5rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 1.7rem;
    color: var(--main-color);
    margin: 0 0.5rem;
    transition: .3s;
}
.team-social a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

/* Contact Section */
.contact {
    background: var(--second-bg-color);
    padding: 8rem 9% 8rem;
    border-bottom: 3px solid var(--main-color);
    border-top: 3px solid var(--main-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.contact h2 {
    margin-bottom: 5rem;
    font-size: 3.2rem;
    color: var(--main-color);
    text-align: center;
    letter-spacing: 2px;
}
.contact form {
    max-width: 600px;
    width: 100%;
    background: var(--second-bg-color);
    padding: 3rem 2.5rem;
    border-radius: 2rem;
    box-shadow: 0 0.5rem 2rem rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 0 auto;
}
.contact .input-box {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.contact .input-box input {
    flex: 1 1 45%;
    padding: 1.2rem 1.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
    background: var(--bg-color);
    border: 2px solid transparent;
    border-radius: 1.2rem;
    outline: none;
    transition: border 0.3s, box-shadow 0.3s;
}
.contact .input-box input:focus,
.contact textarea:focus {
    border: 2px solid var(--main-color);
    box-shadow: 0 0 0.5rem var(--main-color);
}
.contact textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    padding: 1.2rem 1.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
    background: var(--bg-color);
    border: 2px solid transparent;
    border-radius: 1.2rem;
    outline: none;
    transition: border 0.3s, box-shadow 0.3s;
}
.contact .btn {
    width: 100%;
    padding: 1.2rem 0;
    font-size: 1.7rem;
    font-weight: 700;
    border-radius: 2rem;
    background: var(--main-color);
    color: var(--second-bg-color);
    border: none;
    box-shadow: 0 0.5rem 1.5rem rgba(0,255,255,0.15);
    cursor: pointer;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    margin-top: 1rem;
    letter-spacing: 1px;
}
.contact .btn:hover {
    background: #fff;
    color: var(--main-color);
    box-shadow: 0 1rem 2rem rgba(0,255,255,0.25);
}

/* Footer */
.footer {
    background: var(--bg-color);
    padding: 3rem 9% 2rem;
    color: var(--text-color);
    text-align: center;
    margin-top: 0rem;
    border-top: 1px solid var(--main-color);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-logo .logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--main-color);
    text-decoration: none;
    letter-spacing: 2px;
}
.footer-social {
    margin: 2rem 0 1rem 0;
}
.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 0.5rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    color: var(--main-color);
    font-size: 1.7rem;
    transition: background 0.3s, color 0.3s;
}
.footer-social a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}
.footer-links {
    margin-bottom: 1.5rem;
}
.footer-links a {
    color: var(--text-color);
    margin: 0 1rem;
    font-size: 1.3rem;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--main-color);
}
.footer-copy {
    font-size: 1.2rem;
    color: #aaa;
    margin-top: 1rem;
    letter-spacing: 1px;
}
.footer-contact {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.footer-contact a {
    color: var(--text-color);
    font-size: 1.3rem;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-contact a:hover {
    color: var(--main-color);
}

/* Animations */
@keyframes slideRight {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
@keyframes slideLeft {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
@keyframes slideTop {
    0% { transform: translateY(100px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
@keyframes slideBottom {
    0% { transform: translateY(-100px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
@keyframes zoomIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes floatImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-24px); }
    100% { transform: translateY(0); }
}
@keyframes textUnderline {
    0%, 100% { width: 0; }
    50% { width: 100%; }
}

/* Text animation */
.text-animate {
    position: relative;
    display: inline-block;
    color: var(--main-color);
}
.text-animate::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--main-color);
    bottom: -5px;
    left: 0;
    animation: textUnderline 3s ease infinite;
}

/* Utility & Accessibility */
input, textarea, button {
    font-size: 16px !important;
}
img {
    transition: opacity 0.3s ease;
}
img[data-src]:not(.loaded) {
    opacity: 0;
}
img.loaded {
    opacity: 1;
}