/* YOUR ORIGINAL CSS - PRESERVED EXACTLY AS IS */
@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;
    font-family: 'Poppins', sans-serif;
}

body {
    color:#ededed;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    position: relative;
    font-size: 25px;
    color: #ededed;
    text-decoration: none;
    font-weight: 600;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #031319;
    animation: showRight 1s ease forwards;
    animation-delay: .4s;
}

.navbar a {
    font-size: 18px;
    color: #ededed;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: #00abf0;
}

.home {
    height: 100vh;
    background: url('home_bg.png') no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.home-content {
    max-width: 700px;
}

.home-content h1 {
    position: relative;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
}

.home-content h1::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #031319;
    animation: showRight 1s ease forwards;
    animation-delay: 1s;
}

.home-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: #00abf0;
}

.home-content h3::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #031319;
    animation: showRight 1s ease forwards;
    animation-delay: 1.3s;
}

.home-content p {
    position: relative;
    font-size: 16px;
    margin: 20px 0 40px;
}

.home-content p::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #031319;
    animation: showRight 1s ease forwards;
    animation-delay: 1.6s;
}

.home-content .btn-box {
    position: relative;
   display: flex;
   justify-content: space-between;
   width: 345px;
   height: 50px;
}

.home-content .btn-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #031319;
    animation: showRight 1s ease forwards;
    animation-delay: 1.9s;
    z-index: 2;
}

.btn-box a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 100%;
    background: #00abf0;
    border: 2px solid #00abf0;
    border-radius: 8px;
    font-size: 19px;
    color: #081b29;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.btn-box a:hover {
    color: #00abf0;
}

.btn-box a:nth-child(2) {
    background: transparent;
    color: #00abf0;
}

.btn-box a:nth-child(2):hover {
    color: #081b29;
}

.btn-box a:nth-child(2)::before {
    background: #00abf0;
}

.btn-box a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #081b29;
    z-index: -1;
    transition: .5s;
}

.btn-box a:hover::before {
    width: 100%;
}

.home-sci {
    position: absolute;
    bottom: 40px;
    width: 170px;
    display: flex;
    justify-content: space-between;
}

.home-sci::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #031319;
    animation: showRight 1s ease forwards;
    animation-delay: 2.5s;
    z-index: 2;
}


.home-sci a{
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #00abf0;
    border-radius: 50%;
    font-size: 20px;
    color: #00abf0;
    text-decoration: none;
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.home-sci a:hover {
    color: #081b29;
}

.home-sci a::before {
    content: ' ';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #00abf0;
    z-index: -1;
    transition: .5s;

}

.home-sci a:hover::before {
    width: 100%;
}

.home-imgHover {
    position: absolute;
    top: 0;
    right: 30px;
    width: 530px;
    height: 100%;
    background: transparent;
    transition: 2s; 
    animation: manpActiveHover .1s forwards;
    animation-delay: 4s;
    pointer-events: none;
}

.home-imgHover:hover {
    background: #031319;
    opacity: .4;
}

.home-imgHover::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120%;
    height: 100%;
    background: #031319;
    animation: showRight 1s ease forwards;
    animation-delay: 2.8s;
    z-index: 100;
}

/* KEYFRAMES ANIMATION */
@keyframes showRight {
    100% {
        width: 0; 
    }
}

@keyframes manpActiveHover {
    100% {
        pointer-events: auto;
    }
}



/* Navigation functionality */
.navbar a {
    cursor: pointer;
}

.home.active-section {
    display: flex;
}

.home:not(.active-section) {
    display: none;
}

/* New sections styling */
.section-new {
    min-height: 100vh;
    padding: 100px 10% 50px;
    background: #031319;
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #00abf0;
    text-align: center;
}

/* About Section Styles */
.about-content-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content-new h4 {
  font-size: 1.5rem;
  color: #00abf0;
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 670;
  line-height: 1.3;
}

.about-content-new p,
.about-content-new ul {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-content-new ul {
  padding-left: 24px;
}

.about-content-new li {
  margin-bottom: 10px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #ededed;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.skill-item {
    background: rgba(0, 171, 240, 0.1);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #00abf0;
    text-align: center;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-item i {
    font-size: 40px;
    color: #00abf0;
    margin-bottom: 10px;
}

.skill-item h4 {
    color: #ededed;
    font-size: 16px;
}

/* Services Section Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(0, 171, 240, 0.1);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #00abf0;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 50px;
    color: #00abf0;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #ededed;
}

.service-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #ededed;
}

/* Portfolio Section Styles */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(0, 171, 240, 0.1);
    border-radius: 15px;
    border: 2px solid #00abf0;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-info {
    padding: 30px;
}

.project-info h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #ededed;
}

.project-info p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ededed;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-tag {
    background: #00abf0;
    color: #031319;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.project-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.project-links a {
    background: transparent;
    border: 2px solid #00abf0;
    color: #00abf0;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.project-links a:hover {
    background: #00abf0;
    color: #031319;
}

/* Contact Section Styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-item {
    background: rgba(0, 171, 240, 0.1);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #00abf0;
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 40px;
    color: #00abf0;
    margin-bottom: 20px;
}

.contact-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #ededed;
}

.contact-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #ededed;
    margin-bottom: 10px;
}

.contact-item a {
    color: #00abf0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ededed;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #031319;
    margin: 10% auto;
    padding: 30px;
    border: 2px solid #00abf0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.modal-content h3 {
    font-size: 28px;
    color: #00abf0;
    margin-bottom: 20px;
    font-weight: 700;
}

.modal-content p {
    font-size: 16px;
    color: #ededed;
    line-height: 1.6;
    margin-bottom: 20px;
}

.close {
    color: #00abf0;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ededed;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #00abf0;
    color: #031319;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: transparent;
    color: #00abf0;
    border: 2px solid #00abf0;
}

.modal-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #00abf0;
}

.email-btn {
    background: #00abf0;
    color: #031319;
}

.email-btn:hover {
    background: transparent;
    color: #00abf0;
}

.calendly-btn {
    background: transparent;
    color: #00abf0;
}

.calendly-btn:hover {
    background: #00abf0;
    color: #031319;
}

.header {
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.hide-header {
    top: -100px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 20px 5%;
    }
    
    .navbar {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .navbar a {
        margin-left: 20px;
        font-size: 16px;
    }
    
    .home {
        padding: 0 5%;
    }
    
    .home-content h1 {
        font-size: 40px;
    }
    
    .home-content h3 {
        font-size: 24px;
    }
    
    .section-new {
        padding: 80px 5% 30px;
    }
    
    .section-title {
        font-size: 36px;
        margin-bottom: 30px;
    }
    
    .about-content-new {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 20px;
        width: 95%;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-box {
        width: 100% !important;
        gap: 15px;
    }
    
    .btn-box a {
        width: calc(50% - 7.5px) !important;
    }
}
.contact-grid {
    display: grid;
}
/* Target 2-item last row to center it */
.contact-grid.center-last-row {
    justify-content: center;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 30px;
}
@media (max-width: 768px) {
    .contact-grid.center-last-row {
        grid-template-columns: 1fr;
        justify-content: center;
    }
}