/* e:\WORK\web design\fast work\Airpods Animation\proto\style.css */
@import url('https://fonts.googleapis.com/css2?family=Bellefair&display=swap');
@import url('https://fonts.googleapis.com/css?family=Varela');

/* --- 1. Global Variables & Reset --- */
:root {
    --primary-color: #693EFF;
    --secondary-color: #4D2DB7;
    --accent-color: #ffffff;
    --bg-color: #0F172A;
    --text-color: #F1F5F9;
    --text-secondary: #94A3B8;
    --header-bg: rgba(15, 23, 42, 0.9);
    --card-bg: #1E293B;
    --border-color: #334155;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(105, 62, 255, 0.5);
    --gradient-primary: linear-gradient(135deg, #693EFF 0%, #4D2DB7 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--bg-color);
}

body {
    font-family: var(--font-main);
    background-color: transparent;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- 2. Unified Fixed Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(105, 62, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
    border: 1px solid transparent;
    border-radius: 50px;
}

/* --- 10. Glitch Title Effect --- */
.glitch {
    color: white;
    font-size: 40px;
    position: relative;
    margin: 0 auto;
    font-family: 'Varela', sans-serif;
    display: inline-block;
}

@keyframes noise-anim {
    0% { clip: rect(93px, 9999px, 37px, 0); }
    5% { clip: rect(4px, 9999px, 86px, 0); }
    10% { clip: rect(55px, 9999px, 12px, 0); }
    15% { clip: rect(21px, 9999px, 95px, 0); }
    20% { clip: rect(76px, 9999px, 43px, 0); }
    25% { clip: rect(10px, 9999px, 68px, 0); }
    30% { clip: rect(82px, 9999px, 29px, 0); }
    35% { clip: rect(33px, 9999px, 51px, 0); }
    40% { clip: rect(98px, 9999px, 7px, 0); }
    45% { clip: rect(15px, 9999px, 62px, 0); }
    50% { clip: rect(66px, 9999px, 89px, 0); }
    55% { clip: rect(41px, 9999px, 24px, 0); }
    60% { clip: rect(5px, 9999px, 77px, 0); }
    65% { clip: rect(88px, 9999px, 19px, 0); }
    70% { clip: rect(30px, 9999px, 56px, 0); }
    75% { clip: rect(72px, 9999px, 91px, 0); }
    80% { clip: rect(13px, 9999px, 35px, 0); }
    85% { clip: rect(59px, 9999px, 8px, 0); }
    90% { clip: rect(94px, 9999px, 46px, 0); }
    95% { clip: rect(27px, 9999px, 74px, 0); }
    100% { clip: rect(60px, 9999px, 16px, 0); }
}

@keyframes noise-anim-2 {
    0% { clip: rect(19px, 9999px, 83px, 0); }
    5% { clip: rect(42px, 9999px, 6px, 0); }
    10% { clip: rect(78px, 9999px, 35px, 0); }
    15% { clip: rect(5px, 9999px, 91px, 0); }
    20% { clip: rect(63px, 9999px, 14px, 0); }
    25% { clip: rect(27px, 9999px, 58px, 0); }
    30% { clip: rect(94px, 9999px, 47px, 0); }
    35% { clip: rect(11px, 9999px, 73px, 0); }
    40% { clip: rect(55px, 9999px, 22px, 0); }
    45% { clip: rect(88px, 9999px, 96px, 0); }
    50% { clip: rect(31px, 9999px, 9px, 0); }
    55% { clip: rect(75px, 9999px, 61px, 0); }
    60% { clip: rect(8px, 9999px, 38px, 0); }
    65% { clip: rect(49px, 9999px, 85px, 0); }
    70% { clip: rect(96px, 9999px, 18px, 0); }
    75% { clip: rect(24px, 9999px, 52px, 0); }
    80% { clip: rect(69px, 9999px, 79px, 0); }
    85% { clip: rect(15px, 9999px, 4px, 0); }
    90% { clip: rect(53px, 9999px, 98px, 0); }
    95% { clip: rect(81px, 9999px, 33px, 0); }
    100% { clip: rect(44px, 9999px, 66px, 0); }
}

.glitch:after {
    content: attr(data-text);
    position: absolute;
    left: 2px;
    text-shadow: -1px 0 red;
    top: 0;
    color: white;
    background: transparent;
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: noise-anim 2s infinite linear alternate-reverse;
}

.glitch:before {
    content: attr(data-text);
    position: absolute;
    left: -2px;
    text-shadow: 1px 0 blue;
    top: 0;
    color: white;
    background: transparent;
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: noise-anim-2 3s infinite linear alternate-reverse;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(105, 62, 255, 0.5);
    background: rgba(105, 62, 255, 0.1);
}

/* --- 3. Index Page (Carousel Slider) --- */
.carousel {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin-top: -50px;
}

.carousel .list {
    position: absolute;
    width: 1140px;
    max-width: 90%;
    height: 80%;
    left: 50%;
    transform: translateX(-50%);
}

.carousel .list .item {
    position: absolute;
    left: 0;
    top: 0;
    width: 70%;
    height: 100%;
    transition: all 0.5s;
}

.carousel .list .item:nth-child(1) {
    transform: translateX(-55%) translateY(-5%) scale(1.5);
    filter: blur(30px);
    z-index: 11;
    opacity: 0;
    pointer-events: none;
}

.carousel .list .item:nth-child(2) {
    transform: translateX(0);
    z-index: 10;
    opacity: 1;
    filter: blur(0);
}

.carousel .list .item:nth-child(3) {
    transform: translate(50%, 10%) scale(0.8);
    filter: blur(10px);
    z-index: 9;
    opacity: 1;
}

.carousel .list .item:nth-child(4) {
    transform: translate(90%, 20%) scale(0.5);
    filter: blur(30px);
    z-index: 8;
    opacity: 1;
}

.carousel .list .item:nth-child(5) {
    transform: translate(120%, 30%) scale(0.3);
    filter: blur(40px);
    z-index: 7;
    opacity: 0;
    pointer-events: none;
}

.carousel .list .item:nth-child(n+6) {
    opacity: 0;
    pointer-events: none;
}

.carousel .list .item img {
    width: 40%;
    max-height: 60vh;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: right 1.5s;
    object-fit: contain;
    opacity: 1;
}

.carousel .list .item .introduce {
    opacity: 0;
    pointer-events: none;
}

.carousel .list .item:nth-child(2) .introduce {
    opacity: 1;
    pointer-events: auto;
    width: 400px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: opacity 0.5s;
}

.carousel .introduce .title {
    font-size: 1.2rem;
    font-weight: 600;
    color:#4d2db7;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.carousel .introduce .topic {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.carousel .introduce .des {
    font-size: 1rem;
    color: #ddd;
    max-width: 500px;
    margin-bottom: 30px;
}

.glow-text {
    color: #00eaff;
    text-shadow: 0 0 10px rgba(0, 234, 255, 0.7);
    font-weight: 700;
    transition: all 0.3s ease;
}

.glow-text:hover {
    color: #fff;
    text-shadow: 0 0 20px #00eaff, 0 0 40px #00eaff;
}

/* Arrows */
.arrows {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 1140px;
    max-width: 90%;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 100;
}
.arrows button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}
.arrows button:hover { background: var(--primary-color); }

/* --- 4. Portfolio Page (1.html) --- */
.main-content {
    padding: 100px 5% 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 3px;
    background: var(--accent-color);
}

.video-slider-wrapper {
    position: relative;
    width: 100%;
    padding: 0 10px;
}

.video-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.video-track::-webkit-scrollbar {
    display: none;
}

.video-item {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    min-width: 220px;
    flex: 0 0 auto;
    scroll-snap-align: center;
}
.video-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-glow); }

.video-thumbnail {
    position: relative;
    padding-top: 177.77%; /* 9:16 Aspect Ratio for Shorts */
    background: #000;
}
.video-thumbnail img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.3s;
}
.video-thumbnail iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}
.video-item:hover .video-thumbnail img { opacity: 1; }
.play-icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 2rem; color: #fff; opacity: 0.8; transition: 0.3s;
    background: rgba(0,0,0,0.5); width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.video-item:hover .play-icon { transform: translate(-50%, -50%) scale(1.1); background: var(--primary-color); opacity: 1; }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: var(--transition);
}
.slider-btn:hover { background: var(--secondary-color); transform: translateY(-50%) scale(1.1); }
.prev-btn { left: -15px; }
.next-btn { right: -15px; }

/* 3D Carousel for Clients */
.clients-section { padding: 50px 0; perspective: 1000px; overflow: hidden; }
.carousel-container {
    width: 100%;
    height: 200px;
    position: relative;
    display: flex;
    justify-content: center;
}
.carousel-3d {
    width: 200px;
    height: 150px;
    position: absolute;
    transform-style: preserve-3d;
    animation: rotate3d 20s infinite linear;
}
.carousel-item-3d {
    position: absolute;
    width: 200px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}
.carousel-item-3d img { max-width: 80%; max-height: 80%; filter: grayscale(1); transition: 0.3s; }
.carousel-item-3d:hover img { filter: grayscale(0); }

/* Positioning 6 items in a circle */
.carousel-item-3d:nth-child(1) { transform: rotateY(0deg) translateZ(250px); }
.carousel-item-3d:nth-child(2) { transform: rotateY(60deg) translateZ(250px); }
.carousel-item-3d:nth-child(3) { transform: rotateY(120deg) translateZ(250px); }
.carousel-item-3d:nth-child(4) { transform: rotateY(180deg) translateZ(250px); }
.carousel-item-3d:nth-child(5) { transform: rotateY(240deg) translateZ(250px); }
.carousel-item-3d:nth-child(6) { transform: rotateY(300deg) translateZ(250px); }

@keyframes rotate3d {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

/* Vibe Coding Section */
.vibe-portfolio-section { margin-top: 60px; }
.vibe-slider-wrapper {
    position: relative;
    width: 100%;
    padding: 0 10px;
}
.vibe-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}
.vibe-track::-webkit-scrollbar { display: none; }
.vibe-project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    min-width: 300px;
    flex: 0 0 auto;
    scroll-snap-align: center;
}
.vibe-project-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.vibe-project-image { height: 200px; position: relative; }
.vibe-project-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.3s;
}
.vibe-project-card:hover .vibe-project-overlay { opacity: 1; }
.vibe-view-btn {
    padding: 8px 20px;
    background: var(--primary-color);
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
}
.vibe-project-info { padding: 20px; }
.vibe-project-tags { display: flex; gap: 10px; margin: 10px 0; }
.vibe-tag { font-size: 0.8rem; color: var(--accent-color); background: rgba(255, 107, 107, 0.1); padding: 2px 8px; border-radius: 4px; }

/* --- 5. About Page (about.html) --- */
.about-container { padding: 120px 5% 50px; max-width: 1200px; margin: 0 auto; }
.about-title-container { text-align: center; margin-bottom: 50px; }
.about-title { font-size: 3rem; margin-bottom: 10px; color: var(--primary-color); }
.skills-grid, .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}
.skill-card, .info-item {
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
.skill-card:hover, .info-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}
.skill-icon { font-size: 2rem; color: var(--accent-color); margin-bottom: 15px; }
.cta-section { display: flex; justify-content: center; gap: 20px; }
.cta-button, .download-button {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}
.cta-button { background: var(--gradient-primary); color: white; }
.download-button { border: 2px solid var(--primary-color); color: var(--text-color); }

/* --- 6. Contact Page (contact.html) --- */
.contact-container {
    padding: 120px 5% 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-form {
    width: 100%;
    max-width: 700px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-control {
    width: 100%;
    padding: 12px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary-color); }
.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.submit-btn:hover { opacity: 0.9; transform: translateY(-2px); }
.social-media { display: flex; gap: 20px; margin-bottom: 30px; }
.social-icon {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    font-size: 1.2rem;
    transition: var(--transition);
}
.social-icon:hover { background: var(--primary-color); color: white; transform: translateY(-5px); }

.contact-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
    width: 100%;
}

.phone-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    flex: 1 1 200px;
}

.phone-number:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(105, 62, 255, 0.3);
    color: #fff;
}

/* --- 7. Responsive --- */
@media (max-width: 768px) {
    header { 
        padding: 10px 5%; 
        flex-direction: row; 
        justify-content: center; 
        gap: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: none;
        pointer-events: none;
    }

    .logo {
        pointer-events: auto;
        text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    }

    .header-controls {
        pointer-events: auto;
        position: absolute;
        right: 5%;
    }

    /* Bottom Navigation Bar */
    nav { 
        pointer-events: auto;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        background-color: rgba(30, 41, 59, 0.8);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 30px;
        padding: 0 20px;
        height: 70px;
        gap: 0;
        justify-content: space-between;
        align-items: center;
        z-index: 1001;
        flex-wrap: nowrap;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .nav-link {
        font-size: 0.7rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        flex: 1;
        color: var(--text-secondary);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        height: 100%;
        border-radius: 15px;
    }

    .nav-link.active {
        color: #fff;
        background: var(--gradient-primary);
        transform: translateY(-35px);
        box-shadow: 0 10px 20px rgba(105, 62, 255, 0.4);
        border-radius: 50%;
        width: 60px;
        height: 60px;
        flex: 0 0 60px;
        font-size: 0;
        border: 5px solid var(--bg-color);
    }

    .nav-link::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1.2rem;
        margin-bottom: 5px;
        transition: all 0.3s;
    }

    .nav-link.active::before {
        margin-bottom: 0;
        font-size: 1.5rem;
    }

    .nav-link[href*="index"]::before { content: "\f015"; }
    .nav-link[href*="1.html"]::before { content: "\f0b1"; }
    .nav-link[href*="contact"]::before { content: "\f0e0"; }
    .nav-link[href*="about"]::before { content: "\f007"; }

    .nav-link::after { display: none; }

    /* Adjust content padding */
    .main-content, .contact-container, .about-container {
        padding-bottom: 90px;
    }
    
    /* Carousel Mobile Fixes */
    .carousel .list .item { width: 100%; }
    .carousel .list .item img {
        width: 60%;
        height: 25vh;
        top: 22%;
        right: 20%;
        transform: none;
        object-fit: contain;
    }
    .carousel .list .item:nth-child(2) .introduce {
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
        top: auto;
        bottom: 90px;
        text-align: center;
    }
    .carousel .introduce .topic { font-size: 2rem; }
    .carousel .introduce .des { font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    
    .arrows { width: 100%; justify-content: center; bottom: 200px; }

    /* Video Slider Mobile Adjustments */
    .video-item {
        min-width: 100%;
        border-radius: 12px;
    }
    .video-track { gap: 15px; padding: 20px 10px; }
    .vibe-project-card { min-width: 100%; }

    /* Contact Numbers Mobile */
    .contact-numbers {
        flex-direction: column;
        align-items: center;
    }
    .phone-number {
        width: auto;
        flex: 0 0 auto;
    }

    /* Welcome Screen Mobile Fixes */
    .welcome-content {
        width: 95%;
        gap: 15px;
    }
    .welcome-image {
        width: 80%;
        max-width: 350px;
        max-height: 35vh;
        object-fit: contain;
        border: none;
        box-shadow: none;
    }
    .glitch {
        font-size: 2rem;
    }
    .enter-btn {
        padding: 10px 30px;
        font-size: 1rem;
    }
    #welcome-screen .social-media {
        margin-top: 10px !important;
        gap: 10px;
        flex-wrap: wrap;
    }
    #welcome-screen .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* --- 9. Letter Style (About Page) --- */
.letter {
    background: transparent;
    box-shadow: none;
    border: none;
    margin: 20px auto;
    max-width: 1000px;
    min-height: 300px;
    padding: 20px;
    position: relative;
    width: 95%;
}
.letter:before, .letter:after {
    display: none;
}

/* --- 8. Styled Titles (Forest Style) --- */
.styled-title-container {
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    height: 300px;
    background: linear-gradient(to right, rgba(36,31,31,1) 0%, rgba(36,31,31,1) 32%, rgba(74,71,70,1) 100%);
    color: #fff;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 30px;
}

.vignette {
    position: absolute;
    width: 100%;
    height: 100%;
    box-shadow: inset 0px 0px 150px 20px black;
    mix-blend-mode: multiply;
    animation: vignette-anim 3s infinite;
    pointer-events: none;
    z-index: 5;
}

.noise {
    z-index: -1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    opacity: .15;
}

.titleCont { position: relative; z-index: 20; }

.main-title {
    padding: .3em 1em .25em;
    font-weight: 400;
    font-size: 40px;
    color: white;
    font-family: 'Bellefair', serif;
    position: relative;
    line-height: 1.3;
}

@keyframes vignette-anim {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Liquid Title Style */
.liquid-title-container {
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* --- 11. Welcome Screen --- */
#welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-in-out;
}

#smoke-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.welcome-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.welcome-image {
    width: 380px;
    height: auto;
    border-radius: 0;
    border: none;
    box-shadow: none;
    object-fit: contain;
    transition: all 1s ease-in-out;
}

.enter-btn {
    padding: 12px 40px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
    color: #ffffff;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.enter-btn:hover {
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
    transform: scale(1.05);
}

#welcome-screen .social-icon {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(82, 76, 114, 0.76);
    color:#ffffff;
}

#welcome-screen .social-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 20px var(--primary-color);
}

/* --- 12. Chatbot Widget --- */
#chatbot-container {
    position: fixed;
    top: 100px;
    bottom: auto;
    right: 20px;
    z-index: 9000;
    font-family: var(--font-main);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 24px;
    cursor: grab; /* تغيير المؤشر ليشير للسحب */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    touch-action: none; /* يسمح بسحب الزر دون تحريك الصفحة */
}

#chat-toggle-btn:hover {
    cursor: grab;
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary-color);
}

#chat-window {
    position: absolute;
    top: 75px;
    bottom: auto;
    right: 0;
    width: 350px;
    height: 450px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 28px 0 rgba(0, 0, 0, 0.2), 0 2px 4px 0 rgba(0, 0, 0, 0.1); /* ظل يشبه ماسنجر */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* تأثير ارتداد خفيف */
    opacity: 1;
    transform: scale(1);
    transform-origin: top right; /* الانبثاق من جهة الزر */
}

#chat-window.hidden {
    opacity: 0;
    transform: scale(0); /* اختفاء بتصغير الحجم */
    pointer-events: none;
}

.chat-header {
    background: var(--gradient-primary);
    padding: 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-profile-pic {
    width: 70px;
    height: 70px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
}

#close-chat { background: none; border: none; color: white; cursor: pointer; font-size: 1.2rem; }

#chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message { max-width: 80%; padding: 10px 15px; border-radius: 18px; font-size: 0.9rem; line-height: 1.4; }
.bot-msg { background: rgba(255, 255, 255, 0.1); align-self: flex-start; border-bottom-left-radius: 0; }
.user-msg { background: var(--primary-color); color: white; align-self: flex-end; border-bottom-right-radius: 0; }

.lang-btn {
    background: transparent; border: 1px solid var(--primary-color); color: white;
    padding: 8px 15px; margin: 5px; border-radius: 20px; cursor: pointer; transition: 0.3s;
}
.lang-btn:hover { background: var(--primary-color); }

#chat-input-area {
    padding: 10px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    background: rgba(15, 23, 42, 0.8);
}

#user-input { flex: 1; padding: 10px; border-radius: 20px; border: 1px solid var(--border-color); background: rgba(255,255,255,0.05); color: white; outline: none; }
#send-btn { background: var(--primary-color); border: none; color: white; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }

/* Chatbot Service Selection */
.service-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}
.service-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.2s;
}
.service-label:hover { background: rgba(255, 255, 255, 0.1); }
.service-checkbox { accent-color: var(--primary-color); transform: scale(1.2); cursor: pointer; }
.service-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.chat-action-btn {
    background: transparent; border: 1px solid var(--primary-color); color: white;
    padding: 6px 12px; border-radius: 15px; font-size: 0.8rem; cursor: pointer; flex: 1; transition: 0.3s; text-align: center;
}
.chat-action-btn:hover { background: var(--primary-color); }
.chat-confirm-btn { background: var(--gradient-primary); border: none; width: 100%; margin-top: 5px; font-weight: bold; }

@media (max-width: 480px) { #chat-window { width: 300px; right: -10px; } }

/* Notification Badge */
#chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff3b30;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-color);
    animation: bounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#chat-notification.hidden { display: none; }

@keyframes bounce { 0% { transform: scale(0); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* --- 13. LinkedIn Badge Styling --- */
.linkedin-badge-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto 0;
    padding: 20px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: fit-content;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.linkedin-badge-container:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    background: rgba(105, 62, 255, 0.05);
}
