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

html{
    scroll-behavior: smooth;
}

body{
    background: #0a0a0a;
    color: #e0e0e0;
    overflow-x: hidden;
}

/* ===== HEADER SECTION ===== */
#header{
    width: 100%;
    height: 100vh;
    background-image: url(images/Header/Header.jpg);  
    background-size: cover;
    background-position: center;
    position: relative;
}

#header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10,10,10,0.7), rgba(30,144,255,0.15));
    z-index: 1;
}

.container{
    padding: 10px 10%;
    position: relative;
    z-index: 2;
}

/* ===== NAVIGATION ===== */
nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px 0;
}

.logo{
    width: 100px;
    transition: transform 0.3s ease;
}

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

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a{
    color: #e0e0e0;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e90ff, #00bfff);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #1e90ff;
}

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

/* ===== HEADER TEXT ===== */
.header-text{
    margin-top: 15%;
    font-size: 30px;
}

.header-text h1{
    font-size: 55px;
    margin-top: 20px;
    font-weight: 700;
}

.header-text h1 span{
    color: #1e90ff;
}

.header-text p {
    font-size: 24px;
    color: #00bfff;
    margin-top: 10px;
}

/* ===== ABOUT SECTION ===== */
#about {
    padding: 100px 0;
    color: #e0e0e0;
    background: linear-gradient(180deg, #0a0a0a 0%, #121212 100%);
}

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

.about-col-1 {
    flex-basis: 35%;
}

.about-col-1 img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(30,144,255,0.3); 
}

.about-col-1 img:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(30,144,255,0.3);
}

.about-col-2 {
    flex-basis: 60%;
}

.about-col-2 p {
    font-size: 16px;
    font-weight: 400;
    text-align: justify;
    line-height: 1.8;
    padding-top: 20px;
    color: #cccccc;
}

.sub-title {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 25px;
    background: linear-gradient(90deg, #1e90ff, #00bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.sub-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1e90ff, #00bfff);
    border-radius: 2px;
}

/* ===== TAB SYSTEM WITH ICONS ===== */
.tab-titles {
    display: flex;
    gap: 40px;
    margin: 40px 0 35px;
    flex-wrap: wrap;
}

.tab-links {
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    color: #888;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-links i {
    font-size: 20px;
    transition: all 0.3s ease;
    animation: tab-icon-float 2s ease-in-out infinite;
}

@keyframes tab-icon-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.tab-links:hover {
    color: #1e90ff;
    background: rgba(30,144,255,0.05);
}

.tab-links:hover i {
    animation: tab-icon-bounce 0.6s ease;
    color: #00bfff;
}

@keyframes tab-icon-bounce {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(-10deg);
    }
    75% {
        transform: scale(1.2) rotate(10deg);
    }
}

.tab-links.active-link {
    color: #fff;
    background: rgba(30,144,255,0.15);
}

.tab-links.active-link i {
    color: #1e90ff;
    animation: tab-icon-pulse 1.5s ease-in-out infinite;
}

@keyframes tab-icon-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e90ff, #00bfff);
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

.tab-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ===== EXPERIENCE, EDUCATION & CERTIFICATION ITEMS ===== */
.item, .certification-item {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a, #1f1f1f);
    border-radius: 16px;
    padding: 22px 26px;
    margin-bottom: 18px;
    gap: 22px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    border: 2px solid rgba(30,144,255,0.2);
    position: relative;
}

.item:hover, .certification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(30, 144, 255, 0.3);
    border-color: rgba(30,144,255,0.5);
}

.item-logo, .certification-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
    flex-shrink: 0;
    border: 2px solid rgba(30,144,255,0.3);
    background: rgba(30,144,255,0.05);
    padding: 8px;
    transition: transform 0.3s ease;
}

.item:hover .item-logo, 
.certification-item:hover .certification-logo {
    transform: scale(1.1);
}

.item-details, .certification-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.item-title, .certificate-title {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.item-subtitle, .certificate-provider {
    font-size: 14px;
    color: #b0c4de;
    margin-bottom: 6px;
    font-weight: 500;
}

.item-date {
    font-size: 13px;
    color: #888;
    font-weight: 400;
}

.item-link, .certificate-link {
    font-size: 14px;
    color: #1e90ff;
    text-decoration: none;
    margin-top: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    width: fit-content;
}

.item-link:hover, .certificate-link:hover {
    color: #00bfff;
    transform: translateX(5px);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #1e90ff, #00bfff);
    color: #fff;
    border: none;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(30,144,255,0.3);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(30,144,255,0.5);
}

.btn:active {
    transform: translateY(-1px);
}

/* ===== SIDEBAR: Professional styling ===== */
#sidemenu {
    position: fixed;
    top: 0;
    right: -100%; /* hidden by default */
    width: 220px;
    max-width: 92%;
    height: 100vh;
    padding-top: 80px;
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: right 0.36s cubic-bezier(.2,.9,.2,1), box-shadow 0.25s ease;
    color: #e6f3ff;
    /* Animated subtle flowing band gradient (professional + understated) */
    background: linear-gradient(90deg,
        rgba(6,18,35,0.98) 0%,
        rgba(8,34,60,0.98) 20%,
        rgba(10,80,140,0.98) 45%,
        rgba(8,34,60,0.98) 70%,
        rgba(6,18,35,0.98) 100%
    );
    background-size: 300% 300%;
    animation: sidemenu-gradient 12s linear infinite;
    box-shadow: -12px 0 40px rgba(2,8,23,0.7);
    border-left: 1px solid rgba(255,255,255,0.03);
    backdrop-filter: blur(6px) saturate(1.05);
}

#sidemenu.is-open{ right: 0; }

/* improved list layout */
#sidemenu ul { list-style: none; margin: 0; padding: 8px 12px; }
#sidemenu li{ overflow: visible; margin: 6px 0; }

#sidemenu li a{
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    /* Professional, consistent sizing */
    font-size: 16px; /* readable and standard for nav */
    line-height: 1.35;
    padding: 12px 18px; /* comfortable tap target */
    min-height: 48px; /* ensures 48px touch target */
    color: #e6f3ff;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    border-radius: 8px;
    transition: background 200ms ease, transform 140ms ease;
    font-weight: 600;
    letter-spacing: 0.2px;
}

#sidemenu li a i { /* icon inside link */
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px; /* slightly larger for visual balance */
    color: rgba(255,255,255,0.95);
}

#sidemenu li a:hover, #sidemenu li a:focus{
    background: linear-gradient(90deg, rgba(30,144,255,0.06), rgba(0,191,255,0.04));
    transform: translateX(-2px);
}

/* Accessible focus ring */
#sidemenu li a:focus-visible{
    outline: 3px solid rgba(30,144,255,0.18);
    outline-offset: 2px;
}

/* active / current link */
#sidemenu li a[aria-current="page"], #sidemenu li a.active {
    background: linear-gradient(90deg, rgba(30,144,255,0.12), rgba(0,191,255,0.08));
    box-shadow: inset 3px 0 0 rgba(30,144,255,0.6);
}

/* footer area for small icons / social links */
#sidemenu .sidemenu-footer {
    position: absolute;
    bottom: 18px;
    left: 16px;
    right: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

/* improved close button visuals */
#sidemenu .fa-xmark{
    position: absolute;
    top: 18px;
    right: 18px;
    color: #cfefff;
    font-size: 20px;
    z-index: 10011;
    cursor: pointer;
    background: rgba(255,255,255,0.03);
    padding: 8px;
    border-radius: 8px;
}

/* Ensure the close icon sits above the menu */
#sidemenu .fa-xmark{ position: absolute; top: 18px; right: 18px; color: #fff; font-size: 20px; z-index: 10011; cursor: pointer; }

/* Small screens: slightly narrower menu for cozy feel */
@media (max-width: 420px){
    /* keep slightly narrower on very small screens */
    #sidemenu{ width: 280px; }
}

#loadMoreBtn, #showLessBtn {
    display: block;
    margin: 40px auto 0;
}

/* ===== SERVICES SECTION WITH ANIMATED ICONS ===== */
#services {
    padding: 65px 0; /* reduced for improved vertical rhythm */
    background: #0a0a0a;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service {
    background: linear-gradient(135deg, #1a1a1a, #1f1f1f);
    padding: 40px 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(30,144,255,0.2);
    min-height: 320px;
    position: relative;
    overflow: hidden;
}

/* Icon Wrapper for Professional Animation */
.icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.icon-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(30,144,255,0.2), transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

.icon-wrapper::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border: 2px solid rgba(30,144,255,0.3);
    border-radius: 50%;
    animation: rotate-border 3s linear infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
        border-color: rgba(30,144,255,0.3);
    }
    50% {
        border-color: rgba(0,191,255,0.5);
    }
    100% {
        transform: rotate(360deg);
        border-color: rgba(30,144,255,0.3);
    }
}

.service i {
    font-size: 50px;
    color: #1e90ff;
    position: relative;
    z-index: 1;
    animation: float-icon 3s ease-in-out infinite;
    transition: all 0.4s ease;
}

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.service:hover i {
    color: #00bfff;
    animation: bounce-rotate 0.6s ease;
    transform: scale(1.15);
}

@keyframes bounce-rotate {
    0%, 100% {
        transform: scale(1.15) rotate(0deg);
    }
    25% {
        transform: scale(1.25) rotate(-10deg);
    }
    75% {
        transform: scale(1.25) rotate(10deg);
    }
}

.service:hover .icon-wrapper::before {
    background: radial-gradient(circle, rgba(30,144,255,0.4), transparent 70%);
    animation: pulse-glow-hover 1s ease-in-out infinite;
}

@keyframes pulse-glow-hover {
    0%, 100% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.3);
    }
}

.service h2 {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 18px;
    font-weight: 600;
}

.service p {
    font-size: 15px;
    line-height: 1.7;
    color: #cccccc;
    text-align: justify;
    flex-grow: 1;
}

.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(30,144,255,0.3);
    border-color: rgba(30,144,255,0.5);
}

.service::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(30,144,255,0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service:hover::before {
    opacity: 1;
}

/* ===== PORTFOLIO SECTION WITH ANIMATED ICONS ===== */
#portfolio {
    padding: 70px 0; /* reduced to match services and tighten spacing */
    background: linear-gradient(180deg, #0a0a0a 0%, #121212 100%);
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 40px;
    margin-top: 30px; /* tighten gap between heading and projects */
}

.work {
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    border: 2px solid rgba(30,144,255,0.2);
    height: 400px;
}

.work img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.95), rgba(30,144,255,0.85));
    border-radius: 20px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 35px;
    text-align: center;
    transition: height 0.4s ease;
}

.layer h3 {
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
    font-size: 19px;
}

.layer p {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.layer a {
    margin-top: 15px;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    background: linear-gradient(135deg, #1e90ff, #00bfff);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(30,144,255,0.4);
    position: relative;
    animation: scale-in 0.5s ease-out;
}

@keyframes scale-in {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.layer a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30,144,255,0.3), rgba(0,191,255,0.3));
    animation: ripple 1.5s ease-out infinite;
    z-index: -1;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.layer a i {
    transition: all 0.3s ease;
    animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.work:hover .layer {
    height: 100%;
}

.layer a:hover {
    background: linear-gradient(135deg, #00bfff, #1e90ff);
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 8px 25px rgba(30,144,255,0.6);
}

.layer a:hover i {
    animation: shake-icon 0.5s ease-in-out;
}

@keyframes shake-icon {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(-3px) rotate(-10deg);
    }
    75% {
        transform: translateX(3px) rotate(10deg);
    }
}

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

.work:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(30,144,255,0.4);
}

/* Project Disclaimer */
.project-disclaimer {
    background: linear-gradient(135deg, rgba(30,144,255,0.08), rgba(0,191,255,0.05));
    border: 1px solid rgba(30,144,255,0.3);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 24px 0 30px 0;
    text-align: center;
}

.project-disclaimer p {
    margin: 0;
    font-size: 14px;
    color: #a8b8c8;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.project-disclaimer i {
    color: #1e90ff;
    font-size: 16px;
}

@media (max-width: 768px) {
    .project-disclaimer {
        padding: 14px 16px;
        margin: 18px 0 24px 0;
    }
    .project-disclaimer p {
        font-size: 13px;
    }
}

/* Project Buttons */
.project-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
}

.project-buttons .btn {
    margin: 0;
}

/* ===== CONTACT SECTION WITH ANIMATED ICONS ===== */
#contact {
    padding: 60px 0; /* reduced from 100px for tighter vertical rhythm */
    background: #0a0a0a;
}

.contact-left {
    flex-basis: 35%;
}

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

.contact-item {
    margin-top: 16px;
    font-size: 18px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(8px);
    color: #1e90ff;
}

.contact-icon-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-icon-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(30,144,255,0.2), transparent);
    border-radius: 50%;
    animation: contact-pulse 2s ease-in-out infinite;
}

@keyframes contact-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.contact-icon-wrapper i {
    color: #1e90ff;
    font-size: 28px;
    position: relative;
    z-index: 1;
    animation: bounce-vertical 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

@keyframes bounce-vertical {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.contact-item:hover .contact-icon-wrapper i {
    color: #00bfff;
    animation: rotate-bounce 0.6s ease;
}

@keyframes rotate-bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(-15deg);
    }
    75% {
        transform: translateY(-8px) rotate(15deg);
    }
}

.contact-item:hover .contact-icon-wrapper::before {
    background: radial-gradient(circle, rgba(30,144,255,0.4), transparent);
    animation: contact-pulse-hover 1s ease-in-out infinite;
}

@keyframes contact-pulse-hover {
    0%, 100% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1.4);
    }
}

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

.social-icons a {
    text-decoration: none;
    font-size: 32px;
    color: #ababab;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(30,144,255,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30,144,255,0.3), rgba(0,191,255,0.3));
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s ease;
}

.social-icons a:hover::before {
    transform: scale(1);
}

.social-icons a i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #1e90ff;
    background: rgba(30,144,255,0.2);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 8px 20px rgba(30,144,255,0.4);
}

.social-icons a:hover i {
    animation: social-bounce 0.5s ease;
}

@keyframes social-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* ===== PROFESSIONAL CONTACT FORM DESIGN ===== */
.btn.btn2 {
    display: inline-block;
    margin-top: 30px;
}

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

.form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.form-label i {
    color: #1e90ff;
    font-size: 18px;
    animation: label-icon-float 2s ease-in-out infinite;
}

@keyframes label-icon-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.form-label span {
    transition: all 0.3s ease;
}

.form-group:focus-within .form-label i {
    color: #00bfff;
    animation: label-icon-bounce 0.6s ease;
}

@keyframes label-icon-bounce {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(-10deg);
    }
    75% {
        transform: scale(1.2) rotate(10deg);
    }
}

.form-group:focus-within .form-label span {
    color: #1e90ff;
}

.input-wrapper,
.textarea-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a, #1f1f1f);
    border: 2px solid rgba(30,144,255,0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.input-wrapper::before,
.textarea-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(30,144,255,0.1), rgba(0,191,255,0.1));
    transition: width 0.4s ease;
    z-index: 0;
}

.input-wrapper:focus-within,
.textarea-wrapper:focus-within {
    border-color: #1e90ff;
    box-shadow: 0 0 20px rgba(30,144,255,0.3);
    transform: translateY(-2px);
}

.input-wrapper:focus-within::before,
.textarea-wrapper:focus-within::before {
    width: 100%;
}

form input, 
form textarea {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 18px 20px;
    margin: 0;
    color: #fff;
    font-size: 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

form textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 18px;
}

form input::placeholder,
form textarea::placeholder {
    color: #888;
    transition: all 0.3s ease;
}

form input:focus::placeholder,
form textarea:focus::placeholder {
    color: #aaa;
    transform: translateX(5px);
}

/* ===== INTERNATIONAL PHONE INPUT WITH COUNTRY SELECTOR (UPDATED FOR CSS FLAGS) ===== */
.phone-input-container {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.country-selector {
    position: relative;
    flex-shrink: 0;
}

.country-selector-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 16px;
    background: linear-gradient(135deg, #1a1a1a, #1f1f1f);
    border: 2px solid rgba(30,144,255,0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 130px;
    height: 100%;
    position: relative;
}

.country-selector-trigger:hover {
    border-color: rgba(30,144,255,0.4);
    background: linear-gradient(135deg, #1f1f1f, #242424);
    transform: translateY(-1px);
}

.country-selector.active .country-selector-trigger {
    border-color: #1e90ff;
    box-shadow: 0 0 15px rgba(30,144,255,0.3);
}
.flag-icon {
    /* Base properties for the CSS library */
    display: inline-block;
    background-size: contain;
    background-position: 50%;
    background-repeat: no-repeat;

    /* Dimensions based on font-size to use the library's sprite ratio */
    width: 1.33333333em;
    height: 1em;
    line-height: 1em;
    vertical-align: middle;
    
    /* YOUR EXISTING DESIGN PROPERTIES: Keep font-size and flex-shrink */
    font-size: 24px;
    flex-shrink: 0;

    /* CRITICAL FIX: Hide the original emoji/text content so only the background image shows */
    text-indent: -9999px;
    overflow: hidden;
}

.country-code {
    color: #e0e0e0;
    font-weight: 600;
    font-size: 16px;
}

.dropdown-arrow {
    font-size: 12px;
    color: #1e90ff;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.country-selector.active .dropdown-arrow {
    transform: rotate(180deg);
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    max-height: 0;
    background: linear-gradient(135deg, #1a1a1a, #1f1f1f);
    border: 2px solid rgba(30,144,255,0.3);
    border-radius: 12px;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(-10px);
}

.country-selector.active .country-dropdown {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.country-search-wrapper {
    position: relative;
    padding: 15px;
    border-bottom: 2px solid rgba(30,144,255,0.2);
}

.search-icon {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: #1e90ff;
    font-size: 14px;
    pointer-events: none;
}

.country-search {
    width: 100%;
    padding: 12px 15px 12px 35px;
    background: rgba(30,144,255,0.05);
    border: 1px solid rgba(30,144,255,0.2);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.country-search:focus {
    border-color: #1e90ff;
    background: rgba(30,144,255,0.1);
    box-shadow: 0 0 10px rgba(30,144,255,0.2);
}

.country-search::placeholder {
    color: #888;
}

.country-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 8px 0;
}

.country-list::-webkit-scrollbar {
    width: 8px;
}

.country-list::-webkit-scrollbar-track {
    background: rgba(30,144,255,0.05);
    border-radius: 4px;
}

.country-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1e90ff, #00bfff);
    border-radius: 4px;
}

.country-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00bfff, #1e90ff);
}

.country-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #e0e0e0;
}

.country-option:hover {
    background: rgba(30,144,255,0.15);
    padding-left: 25px;
}

.country-option.selected {
    background: rgba(30,144,255,0.2);
    border-left: 3px solid #1e90ff;
}
.country-option .flag-icon {
    /* Use a smaller size for flags in the dropdown list */
    font-size: 16px; 
    flex-shrink: 0;
    
    /* Ensure the technical properties are still met, even at a smaller font-size */
    width: 1.33333333em;
    height: 1em;
    line-height: 1em;
    vertical-align: middle;
}

.country-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.country-dial-code {
    color: #1e90ff;
    font-weight: 600;
    font-size: 14px;
}

.phone-input-wrapper {
    flex: 1;
}

.phone-input-wrapper input {
    width: 100%;
}

/* Error Messages */
.error-message {
    color: #ff4444;
    font-size: 13px;
    margin-top: 8px;
    display: none;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.error-message::before {
    content: '⚠';
    font-size: 14px;
}

.error-message.show {
    display: flex;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-group.error .input-wrapper,
.form-group.error .textarea-wrapper,
.form-group.error .country-selector-trigger {
    border-color: #ff4444;
    box-shadow: 0 0 10px rgba(255,68,68,0.3);
}

/* Submit Button */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn span,
.submit-btn i {
    position: relative;
    z-index: 1;
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Copyright Section */
.copyright {
    height: 80px;
    background: linear-gradient(180deg, #0a0a0a, #000);
    color: #888;
    text-align: center;
    line-height: 80px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    width: 100%;
    border-top: 1px solid rgba(30,144,255,0.1);
}
.copyright p {
    color: #888;
}

.copyright sup {
    font-size: 16px;
    font-weight: bolder;
}

/* ===== MOBILE MENU ===== */
nav .fa-bars,
nav .fa-xmark {
    display: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media only screen and (max-width: 768px) {
    .header-text {
        margin-top: 25%;
        font-size: 20px;
    }
    
    .header-text h1 {
        font-size: 35px;
    }
    
    .header-text p {
        font-size: 18px;
    }
    
    nav .fa-bars,
    nav .fa-xmark {
        display: block;
        font-size: 25px;
        color: #e0e0e0;
        cursor: pointer;
    }
    
    nav ul {
        background: linear-gradient(135deg, #1a1a1a, #1f1f1f);
        position: fixed;
        top: 0;
        right: -360px; /* match new sidebar width */
        width: 360px;
        height: 100vh;
        padding-top: 50px;
        z-index: 10010;
        transition: right 0.5s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    }
    
    nav ul li {
        display: block;
        margin: 25px 20px;
    }
    
    nav ul .fa-xmark {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }
    
    .sub-title {
        font-size: 32px;
    }
    
    .about-col-1,
    .about-col-2 {
        flex-basis: 100%;
    }
    
    .about-col-1 {
        margin-bottom: 30px;
    }
    
    .tab-titles {
        gap: 20px;
    }
    
    .contact-left,
    .contact-right {
        flex-basis: 100%;
    }
    
    .contact-left {
        margin-bottom: 40px;
    }
    
    .phone-input-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .country-selector-trigger {
        width: 100%;
    }
    
    .country-dropdown {
        width: 100%;
    }
    
    .work-list {
        grid-template-columns: 1fr;
    }
    
    .services-list {
        grid-template-columns: 1fr;
    }
}

/* Desktop: keep the navbar inline and let the sidemenu be normal flow */
@media only screen and (min-width: 769px) {
    /* Restore inline nav behavior for larger screens */
    #sidemenu {
        position: static !important;
        right: auto !important;
        width: auto !important;
        height: auto !important;
        padding-top: 0 !important;
        z-index: auto !important;
        overflow: visible !important;
        background: transparent !important;
        box-shadow: none !important;
        display: flex !important;
        align-items: center !important;
    }

    #sidemenu li {
        display: inline-block !important;
        margin: 0 12px !important;
    }

    /* hide mobile controls on desktop */
    nav .fa-bars, nav .fa-xmark { display: none !important; }

    /* overlay is only needed on small screens */
    .sidemenu-overlay { display: none !important; }
}

@media only screen and (max-width: 480px) {
    .container {
        padding: 10px 5%;
    }
    
    .header-text h1 {
        font-size: 28px;
    }
    
    .header-text p {
        font-size: 16px;
    }
    
    .logo {
        width: 80px;
    }
    
    .sub-title {
        font-size: 26px;
    }
    
    .tab-titles {
        flex-direction: column;
        gap: 15px;
    }
    
    .tab-links {
        width: 100%;
        justify-content: center;
    }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1e90ff, #00bfff);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00bfff, #1e90ff);
}

/* Animated gradient keyframes for sidebar */
@keyframes sidemenu-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    #sidemenu { animation: none !important; background-size: auto !important; }
    #sidemenu::before { animation: none !important; }
}

/* ===== ENHANCED TABS & EXPERIENCE / EDUCATION / CERTIFICATION STYLING ===== */
:root{
    --accent: #1e90ff;
    --accent-2: #00bfff;
    --card-radius: 16px;
    --card-padding: 20px;
    --muted: #9bbfe8;
}

/* Make tab titles horizontally scrollable on small screens while keeping desktop layout intact */
.tab-titles{
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 18px;
    padding-bottom: 8px;
}
.tab-titles::-webkit-scrollbar{ height: 8px; }
.tab-titles::-webkit-scrollbar-thumb{ background: linear-gradient(135deg,var(--accent),var(--accent-2)); border-radius: 8px; }

/* Bigger tap targets, accessible focus and cleaner active state */
.tab-links{
    min-width: 160px;
    padding: 12px 18px;
    border: 1px solid rgba(30,144,255,0.06);
    background: transparent;
    box-shadow: none;
    border-radius: 10px;
}
.tab-links:focus-visible{
    outline: 3px solid rgba(30,144,255,0.14);
    outline-offset: 3px;
}
.tab-links.active-link{
    background: linear-gradient(90deg,var(--accent),var(--accent-2));
    color: #fff;
    box-shadow: 0 8px 30px rgba(30,144,255,0.12);
}
.tab-links.active-link i{ color: #fff; }
.tab-links::after{ display: none; }

/* Improve content spacing and visual hierarchy inside tab panes */
.tab-contents{
    padding-top: 8px;
}
.tab-contents .item,
.tab-contents .certification-item{
    background: linear-gradient(135deg,#1a1a1a,#1f1f1f);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    margin-bottom: 18px;
    align-items: flex-start;
}
.item-logo, .certification-logo{
    width: 72px;
    height: 72px;
    border-radius: 12px;
    flex-shrink: 0;
}
.item-details, .certification-details{ padding-left: 12px; }
.item-title, .certificate-title{ font-size: 18px; }
.item-subtitle, .certificate-provider{ font-size: 14px; color: var(--muted); }
.item-meta{ display:flex; gap:12px; align-items:center; margin-top:8px; color: #9bbfe8; font-size:13px; }

/* Responsive behavior tweaks */
@media (max-width: 900px){
    .tab-titles{ gap: 12px; }
    .tab-links{ min-width: 140px; padding: 10px 14px; font-size: 15px; }
}

@media (max-width: 700px){
    /* Make tab titles more compact and visually separated on mobile */
    .tab-titles{ gap: 12px; padding: 8px; -ms-overflow-style: none; scrollbar-width: none; }
    .tab-titles::-webkit-scrollbar{ display: none; }
    .tab-titles{ background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); padding: 8px 10px; border-radius: 12px; }

    .tab-links{ min-width: 120px; padding: 10px 12px; border-radius: 10px; }

    /* Stack item cards vertically for narrow screens */
    .tab-contents .item, .tab-contents .certification-item{
        flex-direction: column;
        gap: 10px;
        padding: 16px;
    }
    .item-logo, .certification-logo{ width: 56px; height: 56px; }
    .item-details, .certification-details{ padding-left: 0; }
    .item-title, .certificate-title{ font-size: 16px; }
    .item-subtitle, .certificate-provider{ font-size: 13px; }
    .item-link, .certificate-link{ font-size: 14px; }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce){
    *{ transition: none !important; animation: none !important; }
}

/* Small utility improvements */
.item .item-link, .certification-item .certificate-link{ display:inline-flex; align-items:center; gap:8px; }

/* End enhanced section */