/* --- 1. SETTINGS & COLORS --- */
:root {
    --bg-color: #050505;       /* Deep Black */
    --card-bg: #121212;        /* Dark Grey Cards */
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    
    /* THEME: Purple & Pink Gradient */
    --gradient-1: #7928ca;
    --gradient-2: #ff0080;
    --accent-glow: rgba(121, 40, 202, 0.5);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

html { scroll-behavior: smooth; }

/* --- 2. NAVIGATION --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 50px; position: fixed; width: 100%; top: 0; z-index: 100;
    transition: 0.3s;
}
nav.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 50px;
}

.logo { font-weight: 900; font-size: 1.5rem; letter-spacing: 1px; }
.logo span { color: var(--gradient-2); }

.nav-links a {
    color: var(--text-main); text-decoration: none; margin-left: 30px;
    font-size: 1rem; font-weight: 500; transition: 0.3s;
}
.nav-links a:hover { color: var(--gradient-2); }

.menu-icon { display: none; font-size: 1.5rem; cursor: pointer; }

/* Mobile Menu */
.mobile-menu {
    position: fixed; top: 0; right: 0; height: 100vh; width: 250px;
    background: var(--card-bg); z-index: 99; padding-top: 80px;
    transform: translateX(100%); transition: 0.3s;
    display: flex; flex-direction: column; align-items: center;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-link { color: #fff; text-decoration: none; font-size: 1.2rem; margin: 20px 0; }

/* --- 3. HERO SECTION --- */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: space-between;
    padding: 0 10%; position: relative;

    
}
/* Background Glows */
.glow-blob {
    position: absolute; width: 400px; height: 400px;
    background: linear-gradient(45deg, var(--gradient-1), var(--gradient-2));
    filter: blur(150px); opacity: 0.2; border-radius: 50%; z-index: -1;
}
.blob-1 { top: -100px; left: -100px; }
.blob-2 { bottom: -50px; right: -50px; }

/* Hero Text */
.hero-text { max-width: 600px; z-index: 2; }

.badge {
    display: inline-block; padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px; font-size: 0.9rem; margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

h1 {
    font-size: 5rem; line-height: 1.1; margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #b0b0b0);
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.gradient-text {
    background: linear-gradient(to right, var(--gradient-2), var(--gradient-1));
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.subtitle { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; line-height: 1.6; }
/* Buttons & Hidden Social Icons */
.btn-group { display: flex; gap: 20px; flex-wrap: wrap; }
.btn {
    padding: 15px 35px; border-radius: 50px; text-decoration: none;
    font-weight: 700; transition: 0.3s; font-size: 1rem;
}
.btn-primary {
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    color: #fff; box-shadow: 0 10px 30px var(--accent-glow); border: none;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px var(--accent-glow); }
.btn-secondary { background: transparent; border: 2px solid rgba(255,255,255,0.2); color: #fff; }
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.05); }

/* Hidden Social Icons Logic */
.social-icons.hidden {
    display: none; 
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
}

.social-icons.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    margin-top: 25px;
    gap: 20px;
}

.social-icons a {
    display: inline-flex; justify-content: center; align-items: center;
    width: 50px; height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%; color: #fff; font-size: 1.5rem;
    text-decoration: none; transition: 0.3s; backdrop-filter: blur(5px);
}

.social-icons a:hover {
    background: var(--gradient-2);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: scale(1.1);
}

/* Hero Image */
.hero-img-container {
    position: relative; width: 450px; height: 450px;
    display: flex; justify-content: center; align-items: center;
}
.img-border {
    position: absolute; width: 100%; height: 100%; border-radius: 50%;
    background: linear-gradient(45deg, var(--gradient-1), var(--gradient-2));
    animation: spin 10s linear infinite; opacity: 0.8; filter: blur(1px);
}
.hero-img {
    width: 96%; height: 96%; border-radius: 50%;
    background-image: url('img/inshaf.jpeg');
    background-size: cover; background-position: center;
    position: relative; z-index: 2; border: 5px solid var(--bg-color);
}
/* Floating Stats */
.float-card {
    position: absolute; background: rgba(20, 20, 20, 0.8);
    padding: 15px 25px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px); display: flex; align-items: center; gap: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5); z-index: 3;
    animation: float 6s ease-in-out infinite;
}
.float-card i { font-size: 1.5rem; color: var(--gradient-2); }
.float-card h4 { font-size: 1.2rem; font-weight: 700; }
.float-card p { font-size: 0.8rem; color: var(--text-muted); }
.card-1 { top: 10%; left: -50px; animation-delay: 0s; }
.card-2 { bottom: 10%; right: -30px; animation-delay: 2s; }

/* --- 4. SECTIONS --- */
.section { padding: 100px 10%; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 60px; }
.section-title span { border-bottom: 3px solid var(--gradient-2); }

/* Skills Grid*/
.skills-container {
    max-width: 1240px;
    margin: 0 auto;
}

.experience-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
}

.skill-category {
    background: rgba(18, 18, 18, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: 22px;
    backdrop-filter: blur(8px);
}

.skill-category h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category.frontend { grid-column: 1 / 8; }
.skill-category.backend { grid-column: 8 / 13; }
.skill-category.databases { grid-column: 1 / 6; }
.skill-category.tools { grid-column: 6 / 13; }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); 
    gap: 14px; 
    margin-top: 15px;
}


.skill-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  
    min-height: 100px; 
}


.skill-card i {
    font-size: 2rem; 
    margin-bottom: 8px;
    color: var(--primary-color); 
}

.skill-card img {
    width: 30px !important; 
    margin-bottom: 8px !important;
}

.skill-card p, .skill-card h3 {
    font-size: 0.9rem; 
    margin: 0;
    font-weight: 500;
}
.skill-card:hover { transform: translateY(-5px); border-color: var(--gradient-1); background: linear-gradient(180deg, var(--card-bg), #1a1a1a); }
.skill-card i { font-size: 2.5rem; margin-bottom: 15px; color: #fff; }

.skill-card img.skill-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    filter: brightness(100%);
}

/* Projects Grid */
#projects {
    padding-top: 115px;
    padding-bottom: 120px;
    position: relative;
}

#projects .section-title {
    margin-bottom: 44px;
}

.projects-shell {
    max-width: 1300px;
    margin: 0 auto;
    padding: 26px 62px 30px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(121, 40, 202, 0.12), rgba(255, 0, 128, 0.05) 55%, rgba(18, 18, 18, 0.9));
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
}

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.project-card {
    background: var(--card-bg); border-radius: 20px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05); transition: 0.4s;
}
.project-card:hover { transform: translateY(-10px); border-color: var(--gradient-2); }
.project-img { height: 250px; background-size: cover; background-position: center; }
.p-img-1 { background-image: url('https://placehold.co/600x400/121212/222222'); }
.p-img-2 { background-image: url('https://placehold.co/600x400/121212/222222'); }
.project-info { padding: 25px; }
.tags { display: flex; gap: 10px; margin-bottom: 15px; }
.tag { font-size: 0.75rem; padding: 5px 12px; border-radius: 20px; background: rgba(255,255,255,0.1); color: var(--text-muted); }
.project-link { color: var(--gradient-2); font-weight: 700; text-decoration: none; }

.hidden-project { display: none; }

/* Contact Section */
.contact-container { display: flex; flex-wrap: wrap; gap: 50px; justify-content: center; align-items: flex-start; }
.contact-info { flex: 1; min-width: 300px; }
.contact-info h3 { font-size: 2rem; margin-bottom: 15px; color: #fff; }
.contact-info p { color: var(--text-muted); margin-bottom: 30px; line-height: 1.6; }
.info-item { display: flex; align-items: center; margin-bottom: 20px; color: #fff; font-size: 1.1rem; }
.info-item i { color: var(--gradient-2); margin-right: 15px; font-size: 1.2rem; }

.contact-form {
    flex: 1; min-width: 300px; background: rgba(255,255,255,0.05);
    padding: 30px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1);
}
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 15px; background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
    color: #fff; font-size: 1rem; outline: none; transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gradient-1); box-shadow: 0 0 10px var(--accent-glow); }

/* Footer */
footer {
    background: #000; padding: 60px 10% 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 50px;
}
.footer-content { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 40px; }
.footer-content h3 { font-size: 2rem; margin-bottom: 10px; background: linear-gradient(to right, var(--gradient-2), var(--gradient-1)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.footer-content p { color: var(--text-muted); font-size: 1rem; max-width: 500px; }
.footer-socials { margin-top: 20px; }
.footer-socials a {
    display: inline-flex; justify-content: center; align-items: center;
    width: 40px; height: 40px; margin: 0 10px;
    background: rgba(255, 255, 255, 0.1); border-radius: 50%;
    color: #fff; text-decoration: none; transition: 0.3s;
}
.footer-socials a:hover { background: var(--gradient-1); transform: translateY(-5px); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.8rem; color: var(--text-muted); }

/* Animations & Mobile */
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

@media (max-width: 900px) {
    .hero { flex-direction: column-reverse; justify-content: center; text-align: center; padding-top: 100px; }
    .hero-img-container { width: 300px; height: 300px; margin-bottom: 50px; }
    h1 { font-size: 3rem; }
    .btn-group { justify-content: center; }
    .card-1 { left: -20px; } .card-2 { right: -20px; }
    .nav-links { display: none; } .menu-icon { display: block; }
    .contact-container { flex-direction: column; }
}
/* Custom Slider Container */
.custom-slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.16));
}

/* Arrows */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(130deg, var(--gradient-1), var(--gradient-2));
    color:white;
    border: 1px solid rgba(255, 255, 255, 0.35);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    transition: 0.3s;
    font-size: 1.2rem;
}
.slider-btn:hover {
    color: #fff;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 0 18px rgba(255, 0, 128, 0.45);
}
.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/*  Track */
.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab; 
}
.slider-track:active {
    cursor: grabbing;
}

/*hidden card */
.slider-card {
    position: absolute;
    width: clamp(340px, 37vw, 430px);
    height: 500px;
    background: linear-gradient(180deg, #1a1a1a, #0f0f0f);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    transition: all 0.5s ease-in-out;
    opacity: 0;
    visibility: hidden; 
    transform: scale(0.7) translateX(0);
    z-index: 0;
    pointer-events: none;
}

/*  Active card*/
.slider-card.active {
    opacity: 1; 
    visibility: visible;
    transform: scale(1) translateX(0);
    z-index: 10;
    pointer-events: auto;
    box-shadow: 0 28px 44px rgba(0, 0, 0, 0.48);
}

/*  left Dim  */
.slider-card.prev {
    opacity: 0.38; 
    visibility: visible;
    transform: scale(0.84) translateX(-82%); 
    z-index: 5;
    pointer-events: auto;
    cursor: pointer;
}

/* Right Dim  */
.slider-card.next {
    opacity: 0.38; 
    visibility: visible;
    transform: scale(0.84) translateX(82%); 
    z-index: 5;
    pointer-events: auto;
    cursor: pointer;
}


.slide-img { width: 100%; height: 56%; background-size: cover; background-position: center; background-color: #222; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.slide-content { padding: 24px; height: 44%; display: flex; flex-direction: column; justify-content: flex-start; }
.slide-tag { background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2)); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 6px; align-self: flex-start; margin-bottom: 12px; }
.slide-content h3 { margin: 0 0 10px 0; font-size: 1.45rem; color: #fff; }
.slide-content p { margin: 0; color: var(--text-muted); font-size: 0.96rem; }
.slide-content p i { color:var(--gradient-2); margin-right: 6px; }
.github-btn {
    display: inline-block;
    margin-top: auto;
    padding: 10px 16px;
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
    background: linear-gradient(90deg, rgba(121, 40, 202, 0.2), rgba(255, 0, 128, 0.14));
}
.github-btn:hover {
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    color: #fff;
    box-shadow: 0 0 15px rgba(217, 0, 255, 0.5);
    transform: translateY(-2px);
}

/*Dots */
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.dot { width: 10px; height: 10px; background: rgba(255, 255, 255, 0.35); border-radius: 5px; cursor: pointer; transition: 0.3s; }
.dot.active { background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2)); width: 30px; box-shadow: 0 0 10px rgba(217, 0, 255, 0.5); }

@media (max-width: 1180px) {
    .experience-layout {
        grid-template-columns: 1fr 1fr;
    }
    .skill-category.frontend,
    .skill-category.backend,
    .skill-category.databases,
    .skill-category.tools { grid-column: auto; }
    .projects-shell {
        padding: 22px 36px 26px;
    }
    .custom-slider-container {
        height: 510px;
    }
    .slider-card {
        width: clamp(320px, 46vw, 390px);
        height: 470px;
    }
}

/* Mobile View */
@media (max-width: 768px) {
    .section {
        padding: 80px 6%;
    }
    .experience-layout {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .skill-category {
        padding: 18px;
        border-radius: 16px;
    }
    .skill-category h3 {
        font-size: 1.08rem;
    }
    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #projects {
        padding-top: 96px;
        padding-bottom: 100px;
    }
    .projects-shell {
        padding: 16px 14px 22px;
        border-radius: 18px;
    }
    .custom-slider-container {
        height: 470px;
    }
    .slider-card {
        width: min(88vw, 360px);
        height: 430px;
    }
    .slide-content {
        padding: 18px;
    }
    .slide-content h3 {
        font-size: 1.2rem;
    }
    .slide-content p {
        font-size: 0.9rem;
    }
    .slider-card.prev,
    .slider-card.next {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    .slider-btn { display: none; } 
}

@media (max-width: 560px) {
    .experience-layout {
        grid-template-columns: 1fr;
    }
    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
