@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed&display=swap');

*{
    margin: 0px;
    padding: 0px;
    font-family: 'Roboto Condensed', sans-serif;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

#header{
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(6, 80, 105, 0.9));
    background-size: cover;
    background-position: center;
    padding-top: 0;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body{
    background-color: #065069;
    color: #fff;
    margin: 0;
    padding: 0;
}

.side-bar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 10%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.nav-scrolled {
    padding: 10px 10%;
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo{
    width: 140px;
    font-weight: 700;
    font-size: 28px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    align-items: center;
    transition: 0.5s ease;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
    position: relative;
    transition: all 0.3s ease;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 5px 0;
}

nav ul li a:after {
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.3s ease;
    border-radius: 5px;
}

nav ul li a:hover {
    color: #ff004f;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.main{
    padding-top: 0; /* Removed fixed padding */
    margin-left: 10%;
    font-size: 30px;
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.main h1{
    font-size: 80px;
    margin-top: 20px;
    line-height: 1.1;
}

.main h1 span{
    color: #ff004f;
}

/* --------about------- */
#about{
    padding: 30px 20px;
    color: #ababaa;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

#about.animate {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1{
    flex-basis: 35%;
    padding-left: 10px;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.about-col-1.animate {
    opacity: 1;
    transform: translateX(0);
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.about-col-1 img{
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.about-col-2{
    flex-basis: 60%;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.about-col-2.animate {
    opacity: 1;
    transform: translateX(0);
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

.para{
    display: block;
    margin: 30px 35px;
    font-size: 20px;
    font-weight: 300;
    text-align: justify;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
}

.para.animate {
    opacity: 1;
    transform: translateX(0);
}

.row h1{
    padding-left: 50px;
    font-size: 80px;
    font-weight: 600;
    color:#fff;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.row h1.animate {
    opacity: 1;
    transform: translateX(0);
}

.tab-titles{
    color: aliceblue;
    font-size: 18px;
    display: flex;
    justify-content: space-around;
    margin: 20px 80px;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 1.8s ease-in-out, transform 1.8s ease-in-out;
}

.tab-titles.animate {
    opacity: 1;
    transform: translateX(0);
}

.tab-links{    
    background-color: #080800;
    font-size: 18px;
    cursor: pointer;
    font-weight: 500;
    margin-right: 50px;
    position: relative;
    color: beige;
}

.tab-links::after{
    content: '';
    height: 3px;
    width: 0;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -10px;
    transition: 0.5s;
}

.tab-links.active-link:hover:after{
     width: 60%;
}

.tab-contents{
    display: none;
    padding: 8px;
    padding-left: 50px;
    margin: 30px 10px;
}

.active-tab{
    display: block; 
}

.tab-contents ul li{
    list-style: none;
    margin: 8px 0; 

}

.tab-contents ul li span{
    color: #ff004f;
    font-size: 14px;
}

/* ----------------- Services --------------- */
#services{
    padding: 50px 20px;
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

#services.animate {
    opacity: 1;
    transform: translateY(0);
}

.my-services{
    margin-left: 100px;
    font-size: 80px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.my-services.animate {
    opacity: 1;
    transform: translateY(0);
}

.services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    padding: 10px;
    grid-gap: 60px;
    margin-top: 50px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
}

.services-list.animate {
    opacity: 1;
    transform: translateY(0);
}

.services-list div{
    background-color: #262626;
    padding: 40px;
    font-size: 14px;
    font-weight: 300;
    border-radius: 15px;
    transition: background 0.5s, transform 0.5s, opacity 0.5s;
    opacity: 0;
    transform: translateY(-30px);
}

.services-list div.animate {
    opacity: 1;
    transform: translateY(0);
}

.services-list div:nth-child(1) {
    transition-delay: 0.1s;
}

.services-list div:nth-child(2) {
    transition-delay: 0.3s;
}

.services-list div:nth-child(3) {
    transition-delay: 0.5s;
}

.services-list div i{
    font-size: 30px;
    margin-bottom: 15px;
}

.services-list div h2{
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}

.services-list div p{
    font-size: 16px;
}

.services-list div a{
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}

.services-list div:hover{
    background: #ff004f;
    transform: translateY(-15px);
}

/* ------------------- portfolio-------------------- */
#portfolio {
    padding: 50px 0;
    text-align: center;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

#portfolio.animate {
    opacity: 1;
    transform: translateX(0);
}

#portfolio h1 {
    font-family: "Poppins", sans-serif;
    font-size: 60px;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

#portfolio h1.animate {
    opacity: 1;
    transform: translateX(0);
}

.para {
    margin: 20px auto;
    font-size: 18px;
    max-width: 800px; /* Keeps paragraph readable */
    text-align: center;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.para.animate {
    opacity: 1;
    transform: translateX(0);
}

.portfolio-list {
    display: flex;
    flex-wrap: wrap; /* Wrap items for responsiveness */
    justify-content: center; /* Align items at the center */
    gap: 25px; /* Adds spacing between portfolio items */
    padding: 20px;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
}

.portfolio-list.animate {
    opacity: 1;
    transform: translateX(0);
}

.work {
    flex: 0 1 calc(250px); /* Dynamic width while keeping fixed size */
    height: 300px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease-in-out, opacity 0.5s;
    opacity: 0;
    transform: translateX(100px);
}

.work.animate {
    opacity: 1;
    transform: translateX(0);
}

.work:nth-child(1) {
    transition-delay: 0.2s;
}

.work:nth-child(2) {
    transition-delay: 0.4s;
}

.work:nth-child(3) {
    transition-delay: 0.6s;
}

.work:nth-child(4) {
    transition-delay: 0.8s;
}

.work img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: block;
    transition: transform 0.5s;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.6), #ff004f);
    border-radius: 15px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 20px;
    transition: height 0.5s ease-in-out;
    text-align: center;
}

.layer h3 {
    color: white;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 10px;
}

.layer p {
    font-size: 14px;
}

.layer a {
    margin-top: 15px;
    color: #fff;
    transition: all .3s ease-in-out;
    text-decoration: none;
    font-size: 22px;
    background: #262626;
    line-height: 60px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.layer a i {
    color: #fff;
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer {
    height: 100%;
}
/* -------------- cv ------------ */
#cv {
    padding: 100px 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(6, 80, 105, 0.8));
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h1 {
    font-family: "Poppins", sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.header-underline {
    height: 4px;
    width: 70px;
    background: #ff004f;
    border-radius: 2px;
    margin: 0 auto;
}

.cv-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
}

.cv-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
}

.cv-text {
    flex-basis: 60%;
    padding-right: 40px;
}

.cv-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.cv-highlights {
    list-style: none;
    padding: 0;
}

.cv-highlights li {
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    color: #f0f0f0;
}

.cv-highlights li i {
    color: #ff004f;
    margin-right: 10px;
    font-size: 18px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff004f;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #ff004f;
    box-shadow: 0 5px 15px rgba(255, 0, 79, 0.2);
}

.download-btn i {
    margin-right: 10px;
    font-size: 20px;
}

.download-btn:hover {
    background: transparent;
    color: #ff004f;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 0, 79, 0.3);
}

/* ------------- Contact Me ---------------- */
#contact {
    padding: 100px 0;
    background: #080808;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.contact-intro {
    text-align: center;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 50px;
    color: #f0f0f0;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background: rgba(38, 38, 38, 0.8);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-left {
    flex-basis: 40%;
    background: rgba(6, 80, 105, 0.9);
    padding: 50px;
    position: relative;
}

.contact-right {
    flex-basis: 60%;
    padding: 50px;
}

.contact-left h2, .contact-right h2 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #fff;
}

.contact-info {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    color: #ff004f;
    font-size: 24px;
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #f0f0f0;
}

.contact-item p {
    font-size: 16px;
    color: #ccc;
}

.social-icons {
    display: flex;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    width: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 15px;
    text-decoration: none;
    font-size: 20px;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #ff004f;
    color: #fff;
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

form input, form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

form input:focus, form textarea:focus {
    border-color: #ff004f;
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.submit-btn {
    background: #ff004f;
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
    border: 2px solid #ff004f;
}

.submit-btn:hover {
    background: transparent;
    color: #ff004f;
}

#msg {
    color: #61b752;
    margin-top: 15px;
    font-size: 16px;
}

/* Copyright Footer */
.copyright {
    background: #111;
    text-align: center;
    padding: 25px 0;
    color: #ccc;
    font-size: 14px;
}

.copyright i {
    color: #ff004f;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.3); }
    60% { transform: scale(1); }
}

/* Responsive Design for CV and Contact */
@media only screen and (max-width: 768px) {
    #cv {
        padding: 70px 0;
    }
    
    .cv-text {
        flex-basis: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .download-btn {
        margin: 0 auto;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .contact-left, .contact-right {
        flex-basis: 100%;
        padding: 30px;
    }
    
    .section-header h1 {
        font-size: 32px;
    }
}

/* ------------------ css for small screen ------------- */
nav .fa-regular,
nav .fa-solid {
    display: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

nav .fa-regular:hover,
nav .fa-solid:hover {
    color: #ff004f;
}

@media only screen and (max-width: 768px) {
    .side-bar {
        padding: 15px 5%;
    }
    
    nav .fa-regular,
    nav .fa-solid {
        display: block;
    }
    
    nav ul {
        background: rgba(8, 8, 8, 0.9);
        backdrop-filter: blur(15px);
        position: fixed;
        top: 0;
        right: -300px;
        width: 250px;
        height: 100vh;
        padding-top: 50px;
        z-index: 1001;
        flex-direction: column;
        align-items: flex-start;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
        transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }
    
    nav ul li {
        display: block;
        margin: 20px 0 20px 25px;
        width: 100%;
    }
    
    nav ul li a {
        font-size: 20px;
    }
    
    nav ul .fa-regular {
        position: absolute;
        top: 25px;
        right: 25px;
        cursor: pointer;
    }

    .main{
        margin-top: 80%;
        font-size: 18px;
    }

    .main h1{
        font-size: 35px;
    }

    .row h1{
        font-size: 40px;
    }

    .about-col-1, .about-col-2{
        flex-basis: 100%;
    }

    .about-col-1{
        margin-bottom: 20px;
    }

    .para{
        font-size: 14px;
        margin: 30px 15px;
    }

    .tab-links{
        font-size: 15px;
        margin-right: 20px;
    }

    .my-services{
        font-size: 55px;
        margin-left: 60px;
    }

    #portfolio h1{
        font-size: 55px;
        margin-left: 60px;
    }

    #cv h1{
        font-size: 60px;
    }

    #cv p{
        margin-left: 90px;
    }

    .contact-left, .contact-right{
        flex-basis: 100%;
    }

    .contact-right{
        margin-left: 15px;
        width: 100%;
    }

    .copyright{
        font-size: 14px;
    }
}

.google-form-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.02);
    margin-top: 20px;
    position: relative;
}

.google-form-container iframe {
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Make sure the iframe has proper spacing on small screens */
@media only screen and (max-width: 768px) {
    .google-form-container {
        margin-top: 15px;
    }
    
    .google-form-container iframe {
        height: 700px; /* Slightly taller on mobile */
    }
}