/* ==============ENHANCED GLOBAL STYLES============== */
*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* Particles Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

/* Floating Tech Icons */
.floating-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 0, 79, 0.1);
    animation: float var(--duration, 10s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.floating-icon:nth-child(1) { top: 10%; left: 10%; }
.floating-icon:nth-child(2) { top: 20%; right: 15%; }
.floating-icon:nth-child(3) { top: 60%; left: 5%; }
.floating-icon:nth-child(4) { top: 70%; right: 10%; }
.floating-icon:nth-child(5) { top: 40%; left: 50%; }
.floating-icon:nth-child(6) { top: 80%; right: 30%; }

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.1;
    }
    25% { 
        transform: translateY(-20px) rotate(90deg); 
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-40px) rotate(180deg); 
        opacity: 0.1;
    }
    75% { 
        transform: translateY(-20px) rotate(270deg); 
        opacity: 0.2;
    }
}

/* ==============ENHANCED LOADING SCREEN============== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #1a0a1a 50%, #000000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
    overflow: hidden;
}

#loading-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 0, 79, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 75% 75%, rgba(255, 0, 79, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 79, 0.05) 0%, transparent 50%);
    animation: rotateBackground 20s linear infinite;
}

@keyframes rotateBackground {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.loading-logo img {
    width: 150px;
    margin-bottom: 30px;
    animation: logoFloat 3s ease-in-out infinite, logoGlow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 0, 79, 0.5));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 0, 79, 0.5)); }
    50% { filter: drop-shadow(0 0 30px rgba(255, 0, 79, 0.8)) drop-shadow(0 0 40px rgba(255, 0, 79, 0.3)); }
}

/* Animated MEL-HARC nickname */
.loading-logo-text {
    margin-bottom: 40px;
    position: relative;
}

.nickname {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ff004f; /* Black color for all letters */
    letter-spacing: 0.1em;
    position: relative;
    display: inline-block;
    animation: typewriter 2s steps(8) 1s both;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #000000;
}

/* Style only the first letter "M" in pink */
.nickname::first-letter {
    color: #00000f;
    text-shadow: 0 0 10px rgba(255, 0, 79, 0.5);
}

.logo-underline {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff004f, transparent);
    animation: underlineExpand 2s ease-out 3s both;
}

@keyframes typewriter {
    0% { width: 0; border-right-color: #ff004f; }
    90% { border-right-color: #ff004f; }
    100% { width: 100%; border-right-color: transparent; }
}

@keyframes underlineExpand {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Header Logo Text Styles */
.header-logo-text {
    position: absolute;
    top: 30px;
    left: 30px; /* Changed from right to left */
    z-index: 10;
}

.header-nickname {
    font-size: 1.5rem; /* Reduced from 2rem */
    font-weight: 900;
    color: #ff004f;
    letter-spacing: 0.1em;
    position: relative;
    display: inline-block;
}

/* Style only the first letter "M" */
.header-nickname::first-letter {
    color: #000000;
    text-shadow: 0 0 10px rgba(255, 0, 79, 0.5);
}

.header-logo-underline {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff004f, transparent);
}

.loading-animation {
    margin: 30px 0;
    position: relative;
}

.upload-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 0, 79, 0.3);
    min-width: 350px;
    position: relative;
    overflow: hidden;
}

.upload-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff004f, #ff0066, #ff004f);
    background-size: 200% 200%;
    border-radius: 22px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.upload-icon {
    font-size: 60px;
    color: #ffffff;
    margin-bottom: 20px;
    animation: uploadPulse 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

@keyframes uploadPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.9;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
    50% { 
        transform: scale(1.2) rotate(5deg); 
        opacity: 1;
        text-shadow: 0 0 30px rgba(255, 255, 255, 1), 0 0 40px rgba(255, 0, 79, 0.3);
    }
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin: 20px 0;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a1a1a 0%, #ff004f 50%, #ffffff 100%);
    background-size: 200% 100%;
    border-radius: 5px;
    width: 30%;
    transition: width 0.3s ease;
    animation: progressGlow 2s ease-in-out infinite, progressFlow 3s linear infinite;
    position: relative;
    overflow: hidden;
}

@keyframes progressGlow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
        filter: brightness(1);
    }
    50% { 
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.9), 0 0 35px rgba(255, 0, 79, 0.4);
        filter: brightness(1.3);
    }
}

@keyframes progressFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.loading-text {
    font-size: 18px;
    margin: 15px 0;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.percentage {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin-top: 10px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    animation: percentageGlow 1.5s ease-in-out infinite;
}

@keyframes percentageGlow {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
    50% { 
        transform: scale(1.1);
        text-shadow: 0 0 30px rgba(255, 255, 255, 1), 0 0 40px rgba(255, 0, 79, 0.3);
    }
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff004f;
    animation: dotBounce 1.4s ease-in-out infinite both;
    box-shadow: 0 0 15px rgba(255, 0, 79, 0.5);
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes dotBounce {
    0%, 80%, 100% { 
        transform: scale(0.8); 
        box-shadow: 0 0 15px rgba(255, 0, 79, 0.5);
    }
    40% { 
        transform: scale(1.2); 
        box-shadow: 0 0 25px rgba(255, 0, 79, 0.8), 0 0 35px rgba(255, 0, 79, 0.3);
    }
}

.loading-text {
    font-size: 18px;
    margin: 15px 0;
    color: #ffffff;
    font-weight: 500;
}

.percentage {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin-top: 10px;
}

.loading-dots {
    margin-top: 30px;
}

.loading-dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff69b4;
    margin: 0 5px;
    animation: dotBounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes dotBounce {
    0%, 80%, 100% { 
        transform: scale(0);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive design for loading screen */
@media screen and (max-width: 768px) {
    .upload-box {
        padding: 25px 15px;
        min-width: 90%;
        margin: 0 5%;
    }
    
    .loading-logo img {
        width: 100px;
    }
    
    /* Responsive nickname styling */
    .nickname {
        font-size: 2.5rem;
    }
    
    .upload-icon {
        font-size: 45px;
    }
    
    .loading-text {
        font-size: 14px;
    }
    
    .percentage {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .upload-box {
        padding: 20px 10px;
        min-width: 95%;
        margin: 0 2.5%;
    }
    
    .loading-logo img {
        width: 80px;
    }
    
    /* Small mobile nickname styling */
    .nickname {
        font-size: 2rem;
        letter-spacing: 0.05em;
    }
    
    .upload-icon {
        font-size: 40px;
    }
    
    .loading-text {
        font-size: 12px;
    }
    
    .percentage {
        font-size: 16px;
    }
    
    .loading-dots span {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
}

html{
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; /* Prevent iOS text size adjustment */
}

/* Additional mobile fixes */
* {
    -webkit-touch-callout: none; /* Disable callout on iOS */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight */
}

/* Prevent zoom on form inputs on iOS */
input, textarea, select {
    font-size: 16px;
}
body{
    background-color: #080808;
    color: #fff;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Better touch targets for mobile */
a, button, .tab-links {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#header {
    width: 100%;
    height: 100vh;
    /* Removed background-image to use same background as rest of site */
    /* background-image: url(images/new.jpg);
    background-size: cover;
    background-position: center; */
}

.container {
    padding: 10px 10%;
}

/* Improved container for mobile */
@media screen and (max-width: 768px) {
    .container {
        padding: 10px 5%;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 10px 3%;
    }
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align items to the right */
    flex-wrap: wrap;
}

/* Hide burger menu icon on desktop */
nav .fa-solid, .fa-bars {
    display: none;
}

.logo {
    width: 140px;
}

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

nav ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    transition: 0.5s;
    padding: 10px 5px; /* Better touch targets */
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
}
nav ul li a:hover::after{
    width: 100%;
}

.header-text {
    margin-top: 20%;
    font-size: 30px;
}
.header-text h1 {
    font-size: 50px;
    margin-top: 60px;
}

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

/* ----------------about---------- */
#about{
    padding: 80px 0;
    color: #ababab;
}
.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.about-col-1{
    flex-basis: 35%;
    height: 50%;
}
.about-col-1 img{
    width: 100%;
    height: 100%;

    border-radius: 15px;
}
.about-col-2 {
    flex-basis: 60%;
}

.sub-title{
    font-size: 60px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #fff;
}

.tab-titles{
    display: flex;
    margin: 40px 0 20px;
}

.p-about-me{
    margin-top: 30px;
    font-size: 25px;
}

.tab-links{
    margin-right: 60px;
    font-size: 25px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}
  
.tab-links.active-link::after{
    width: 50%;
}
.tab-contents ul li span{
    color: #b54769;
    font-size: 20px;
}
.p-education{
    font-size: 20px;
    margin: 10px;
}
.tab-contents{
    display: none;
}
.tab-contents.active-tab{
    display: block;
}
.skl {
    font-size: 20px;
    display: flex;
    justify-content: flex-start;
}
.column {
    list-style-type: disc; 
    padding: 20px;
    
}
.column li {
    margin-top: 3px;
    margin-bottom: 2px;
}
/* ==============ENHANCED PROJECTS SECTION============== */
#projects {
    padding: 80px 0;
    color: #ababab;
}

#projects .container {
    position: relative;
    z-index: 1;
}

#projects .sub-title {
    position: relative;
    overflow: hidden;
}

#projects .sub-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 79, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Scroll hint styling */
.scroll-hint {
    text-align: center;
    margin: 20px 0 10px 0;
    opacity: 0.7;
    font-size: 14px;
    color: #ff004f;
    animation: fadeInOut 3s ease-in-out infinite;
    position: relative;
}

.scroll-hint::before {
    content: '✨';
    position: absolute;
    left: -30px;
    animation: sparkle 2s ease-in-out infinite;
}

.scroll-hint::after {
    content: '✨';
    position: absolute;
    right: -30px;
    animation: sparkle 2s ease-in-out infinite 1s;
}

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

@keyframes fadeInOut {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.3; }
}

/* Enhanced Projects Grid */
.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 50px;
    padding: 20px 0;
    max-height: 1000px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for projects */
.projects-list::-webkit-scrollbar {
    width: 12px;
}

.projects-list::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #262626, #1a1a1a);
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.projects-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff004f, #cc0040);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 0, 79, 0.5);
}

.projects-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff0066, #e60046);
    box-shadow: 0 0 15px rgba(255, 0, 79, 0.8);
}

/* Enhanced Project Cards */
.project-card {
    perspective: 1000px;
    height: 450px;
    position: relative;
    animation: slideInUp 0.8s ease-out forwards;
    animation-delay: var(--animation-delay, 0s);
    opacity: 0;
    transform: translateY(50px);
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    cursor: pointer;
}

.project-card:hover .project-card-inner {
    transform: rotateY(180deg);
}

.project-card-front,
.project-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.project-card-front {
    background: linear-gradient(135deg, #262626 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 0, 79, 0.2);
}

.project-card-back {
    background: linear-gradient(135deg, #ff004f 0%, #cc0040 100%);
    color: white;
    transform: rotateY(180deg);
}

.project-icon-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.project-icon-wrapper i {
    font-size: 4rem;
    color: #ff004f;
    margin-bottom: 15px;
    display: block;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.project-card-back i {
    color: white;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.tech-tag {
    background: rgba(255, 0, 79, 0.2);
    color: #ff004f;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(255, 0, 79, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.project-card-back .tech-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.tech-tag:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 0, 79, 0.5);
}

.name-project {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 15px 0;
    color: #ff004f;
    background: linear-gradient(45deg, #ff004f, #ff0066);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-card-back .name-project {
    color: white;
    -webkit-text-fill-color: white;
}

.project-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cccccc;
    flex-grow: 1;
    margin: 15px 0;
}

.project-card-back p {
    color: rgba(255, 255, 255, 0.9);
}

.project-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.stat-item {
    background: rgba(255, 0, 79, 0.1);
    color: #ff004f;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 0, 79, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 0, 79, 0.2);
    transform: translateY(-2px);
}

.stat-item i {
    margin-right: 5px;
    font-size: 0.8rem;
}

.project-card-back ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.project-card-back li {
    padding: 8px 0;
    position: relative;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.project-card-back li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00ff88;
    font-weight: bold;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: auto;
}

.project-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Project Navigation Section */
.project-navigation {
    margin-top: 60px;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 0, 79, 0.1) 0%, rgba(255, 0, 79, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 0, 79, 0.2);
    backdrop-filter: blur(20px);
}

.nav-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-card {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 79, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 120px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 0, 79, 0.3);
}

.stat-card i {
    font-size: 2rem;
    color: #ff004f;
    margin-bottom: 10px;
    display: block;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ff004f;
    margin: 5px 0;
}

.stat-label {
    font-size: 0.9rem;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-all-projects {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #ff004f, #ff0066);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 0, 79, 0.4);
}

.view-all-projects:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 79, 0.6);
    background: linear-gradient(45deg, #ff0066, #ff004f);
}

.view-all-projects i {
    transition: transform 0.3s ease;
}

.view-all-projects:hover i {
    transform: translateX(5px);
}

/* Hide scroll hint on mobile where scrolling is more obvious */
@media screen and (max-width: 768px) {
    .scroll-hint {
        display: none;
    }
    
    .projects-list {
        grid-template-columns: 1fr;
        gap: 20px;
        max-height: none;
        padding: 10px;
    }
    
    .project-card {
        height: auto;
        min-height: 350px;
    }
    
    .nav-stats {
        gap: 20px;
    }
    
    .stat-card {
        min-width: 100px;
        padding: 15px;
    }
}

#a {
    font-size: 20px;
    text-decoration: none;
    color: #007BFF; 
    font-weight: bold;
    align-self: flex-start;
}

/* ------------certificat------- */
#certificat{
    padding: 50px 0;
}
.certificat-list{
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 50px;
    margin-top: 50px;
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for certificates */
.certificat-list::-webkit-scrollbar {
    height: 8px;
}

.certificat-list::-webkit-scrollbar-track {
    background: #262626;
    border-radius: 10px;
}

.certificat-list::-webkit-scrollbar-thumb {
    background: #ff004f;
    border-radius: 10px;
}

.certificat-list::-webkit-scrollbar-thumb:hover {
    background: #e60046;
}
.work {
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    min-width: 400px;
    flex-shrink: 0;
    height: 300px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.work:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255,0,79,0.2);
}

.work img{
    width: 100%;
    height: 100%;
    border-radius: 15px;
    display: block;
    transition: transform 0.5s ease;
    object-fit: cover;
}
.layer{
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.85), rgba(255,0,79,0.9));
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 30px;
    text-align: center;
    font-size: 16px;
    transition: height 0.5s ease;
    backdrop-filter: blur(10px);
}

.layer h3{
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.layer p{
    font-size: 0.95rem;
    color: #f0f0f0;
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    opacity: 0.9;
}

.layer a{
    margin-top: 15px;
    color: #ff004f;
    text-decoration: none;
    font-size: 20px;
    line-height: 60px;
    background: linear-gradient(135deg, #ffffff, #f8f8f8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,0,79,0.3);
    border: 2px solid rgba(255,255,255,0.2);
}

.layer a:hover{
    transform: scale(1.1) rotate(10deg);
    background: linear-gradient(135deg, #ff004f, #ff0066);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(255,0,79,0.5);
}
.work:hover img{
    transform: scale(1.08);
    filter: brightness(0.7);
}

.work:hover .layer{
    height: 100%;
}
/* --------Enhanced Contact Section------ */
#conatct {
    padding: 80px 0;
    background: transparent; /* Let particles background show through */
    position: relative;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #ababab;
    margin-top: 10px;
    font-weight: 300;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-left {
    display: flex;
    flex-direction: column;
}

.contact-info-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255,0,79,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255,0,79,0.1);
    transform: translateX(10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff004f, #ff0066);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow: 0 10px 20px rgba(255,0,79,0.3);
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-details h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-details p {
    color: #ababab;
    font-size: 0.95rem;
    margin: 0;
}

.social-section {
    margin: 40px 0;
}

.social-section h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    text-decoration: none;
    color: #ababab;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-link:hover {
    background: rgba(255,0,79,0.1);
    color: #ff004f;
    border-color: rgba(255,0,79,0.3);
    transform: translateX(5px);
}

.social-link i {
    font-size: 1.3rem;
    margin-right: 15px;
    width: 25px;
}

.social-link span {
    font-weight: 500;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff004f, #ff0066);
    color: white;
    padding: 18px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(255,0,79,0.3);
    margin-top: 30px;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255,0,79,0.4);
    background: linear-gradient(135deg, #ff0066, #ff004f);
}

.contact-right {
    display: flex;
    flex-direction: column;
}

.contact-form-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255,0,79,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}
/**/
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px 20px 20px 55px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group textarea {
    height: 250px;
    min-height: 150px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff004f;
    background: rgba(255,0,79,0.05);
    box-shadow: 0 0 20px rgba(255,0,79,0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #ababab;
}

.form-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff004f;
    font-size: 1.1rem;
}

.form-group textarea + .form-icon {
    top: 25px;
    transform: none;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #ff004f, #ff0066);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(255,0,79,0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255,0,79,0.4);
    background: linear-gradient(135deg, #ff0066, #ff004f);
}

.btn-submit:active {
    transform: translateY(0);
}

#msg {
    color: #61b752;
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    background: rgba(97,183,82,0.1);
    border: 1px solid rgba(97,183,82,0.3);
    text-align: center;
    font-weight: 500;
    display: none;
}

/* --------Enhanced Copyright Section------ */
.copyright {
    width: 100%;
    padding: 60px 0 40px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #ff004f 20%, #ff0066 50%, #ff004f 80%, transparent 100%);
    animation: glowLine 3s ease-in-out infinite;
}

.copyright-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.copyright-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    position: relative;
}

.copyright-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #ff004f, #ff0066);
    animation: lineGrow 4s ease-in-out infinite;
}

.copyright-text {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.copyright-year {
    color: #ff004f;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out;
}

.copyright-name {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff, #ff004f);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
}

.copyright-tech {
    color: #ababab;
    font-size: 0.85rem;
    font-style: italic;
    letter-spacing: 0.5px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.copyright i {
    color: #ff004f;
    font-size: 1rem;
    animation: heartbeat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255,0,79,0.6));
}

/* Animations */
@keyframes glowLine {
    0%, 100% { 
        opacity: 0.5;
        transform: scaleX(0.8);
    }
    50% { 
        opacity: 1;
        transform: scaleX(1.2);
    }
}

@keyframes lineGrow {
    0%, 100% { width: 0; }
    50% { width: 100%; }
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

@keyframes heartbeat {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255,0,79,0.6));
    }
    50% { 
        transform: scale(1.2);
        filter: drop-shadow(0 0 15px rgba(255,0,79,0.9));
    }
}

nav .fa-solid{
    display: none;
}


@media only screen and (max-width: 768px){
    /* #header{
        background-image: url(images/DSC02477.JPG);
        height: 100vh;
    } */
    .logo{
        width: 100px;
    }
    
    /* Header logo responsive for tablet */
    .header-logo-text {
        top: 20px;
        left: 20px; /* Changed from right to left */
    }
    
    .header-nickname {
        font-size: 1.2rem; /* Reduced from 1.5rem */
    }
    
    .header-text{
        margin-top: 80%;
        font-size: 18px;
    }
    .header-text h1{
        font-size: 35px;
        margin-top: 40px;
    }
    nav .fa-solid, .fa-bars{
        position: absolute;
        display: block; /* Show burger menu on mobile */
        font-size: 25px;
        top: 40px;
        right: 20px;
        z-index: 3;
        cursor: pointer;
    }
    nav ul {
        background: #ff004f;
        position: fixed;
        top: 0;
        right: -300px; /* Start off-screen to the right */
        width: 300px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s ease; /* Smooth slide animation */
        overflow-y: auto;
    }
    nav ul.active  {
        right: 0; /* Slide in from right */
    }
    nav ul li {
        display: block;
        margin: 25px;
    }
    nav ul .fa-solid, .fa-xmark{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

    .sub-title{
        font-size: 45px;
    }
    .about-col-1, .about-col-2{
        flex-basis: 100%;
    }
    .about-col-1{
        margin-bottom: 30px;
    }
    .about-col-2{
        font-size: 15px;
    }
    .tab-links{
        font-size: 16px;
        margin-right: 20px;
    }
    
    /* Enhanced Contact Responsive - Tablet */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 30px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .social-icons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .social-link {
        flex: 1;
        min-width: 150px;
        justify-content: center;
    }
    
    /* Enhanced Copyright responsive for tablets */
    .copyright-content {
        gap: 20px;
        padding: 0 15px;
    }
    
    .copyright-text {
        gap: 10px;
    }
    
    .copyright-name {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .copyright-year,
    .copyright-tech {
        font-size: 0.8rem;
    }
    
    /* Projects grid adjustments for tablets */
    .projects-list {
        grid-template-columns: 1fr;
        max-height: 550px;
        gap: 30px;
    }
}

@media only screen and (max-width: 480px){
    .logo{
        width: 80px;
    }
    
    /* Header logo responsive for small mobile */
    .header-logo-text {
        top: 15px;
        left: 15px; /* Move to left on small mobile to avoid burger menu */
        right: auto;
    }
    
    .header-nickname {
        font-size: 1rem; /* Reduced from 1.2rem */
    }
    
    .header-text{
        margin-top: 100%;
        font-size: 16px;
    }
    .header-text h1{
        font-size: 28px;
        margin-top: 30px;
    }
    nav .fa-solid, .fa-bars{
        top: 30px;
        right: 15px;
        font-size: 22px;
        display: block; /* Ensure burger menu shows on small mobile */
        cursor: pointer;
    }
    nav ul {
        width: 280px;
        right: -280px; /* Start off-screen to the right */
    }
    nav ul li {
        margin: 20px;
    }
    nav ul li a {
        font-size: 16px;
    }

    .sub-title{
        font-size: 35px;
    }
    .about-col-2{
        font-size: 14px;
    }
    .tab-links{
        font-size: 14px;
        margin-right: 15px;
    }
    
    /* Enhanced Contact Responsive - Mobile */
    #conatct {
        padding: 60px 0;
    }
    
    .contact-header {
        margin-bottom: 40px;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .contact-wrapper {
        gap: 30px;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 25px;
        border-radius: 15px;
    }
    
    .contact-item {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }
    
    .contact-icon i {
        font-size: 1.2rem;
    }
    
    .social-icons {
        gap: 12px;
    }
    
    .social-link {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .social-link i {
        font-size: 1.1rem;
        margin-right: 10px;
    }
    
    .btn-download {
        padding: 15px 25px;
        font-size: 0.95rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 15px 15px 15px 45px;
        font-size: 0.95rem;
    }
    
    .form-group textarea {
        height: 120px;
        min-height: 120px;
    }
    
    .form-icon {
        left: 15px;
        font-size: 1rem;
    }
    
    .btn-submit {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .copyright{
        font-size: 12px;
    }
    
    /* Scrollable sections mobile adjustments */
    .projects-list {
        grid-template-columns: 1fr;
        gap: 20px;
        max-height: 500px;
    }
    
    .projects-list div{
        padding: 30px 20px;
    }
    
    .work {
        min-width: 280px;
        height: 250px;
    }
    
    .certificat-list {
        gap: 20px;
    }
    
    /* Enhanced Copyright responsive for mobile */
    .copyright {
        padding: 40px 0 30px 0;
    }
    
    .copyright-content {
        flex-direction: column;
        gap: 15px;
        padding: 0 10px;
    }
    
    .copyright-line {
        width: 100%;
        max-width: 200px;
    }
    
    .copyright-text {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .copyright-name {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .copyright-year,
    .copyright-tech {
        font-size: 0.75rem;
    }
    
    .copyright i {
        font-size: 0.9rem;
    }
}