/*---------------------------------------------
 * Main Stylesheet
 * Contains styles for layout, typography, 
 * components and general styling
 *--------------------------------------------*/

/* ---- Reset & Base Styles ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Variables */
    --primary-color: #9D4EDD;
    --primary-light: #C77DFF;
    --primary-dark: #7B2CBF;
    --secondary-color: #10002B;
    --text-color: #F8F9FA;
    --text-color-light: #CED4DA;
    --bg-color: #0a0a0a;
    --bg-color-light: #121212;
    --bg-color-lighter: #1E1E1E;
    --success-color: #28A745;
    --error-color: #DC3545;
    --warning-color: #FFC107;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Sizing & Spacing */
    --header-height: 80px;
    --section-padding: 100px 0;
    --container-padding: 0 20px;

    /* Transitions */
    --transition-slow: all 0.5s ease;
    --transition-medium: all 0.3s ease;
    --transition-fast: all 0.2s ease;

    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;

    /* Z-Index Layers */
    --z-back: -1;
    --z-normal: 1;
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}


html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-medium);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
    border: none;
}

button {
    cursor: pointer;
    background: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.5rem;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ---- Help Bot ---- */
.help-bot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: var(--z-fixed);
}

.help-bot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.help-bot-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.help-bot-button i {
    font-size: 2.4rem;
    color: white;
}

.help-bot-container {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 350px;
    height: 450px;
    background-color: var(--bg-color-lighter);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
}

.help-bot.active .help-bot-container {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.help-bot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.help-bot-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-bot-title i {
    font-size: 2rem;
}

.help-bot-title h3 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.help-bot-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.help-bot-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.help-bot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bot-message {
    display: flex;
    gap: 10px;
    max-width: 80%;
}

.user-message {
    display: flex;
    gap: 10px;
    max-width: 80%;
    align-self: flex-end;
    flex-direction: row-reverse;
}

.bot-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.bot-avatar i {
    color: white;
    font-size: 1.6rem;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--text-color-light);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.user-avatar i {
    color: var(--bg-color);
    font-size: 1.6rem;
}

.message-content {
    background-color: var(--bg-color);
    padding: 12px 15px;
    border-radius: 15px;
    border-top-left-radius: 5px;
    font-size: 1.4rem;
}

.user-message .message-content {
    background-color: var(--primary-dark);
    border-radius: 15px;
    border-top-right-radius: 5px;
}

.message-content p {
    margin-bottom: 10px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin-bottom: 0;
    padding-left: 15px;
}

.message-content ul li {
    list-style-type: disc;
    margin-bottom: 5px;
}

.message-content ul li:last-child {
    margin-bottom: 0;
}

.help-bot-input {
    display: flex;
    padding: 15px;
    background-color: var(--bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.help-bot-input input {
    flex: 1;
    padding: 10px 15px;
    background-color: var(--bg-color-lighter);
    border-radius: 25px;
    font-size: 1.4rem;
}

.help-bot-input .send-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.help-bot-input .send-button:hover {
    background-color: var(--primary-dark);
}

.help-bot-input .send-button i {
    color: white;
    font-size: 1.6rem;
}

/* ---- Layout & Container ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

section {
    padding: var(--section-padding);
}

/* ---- Preloader ---- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-modal);
    transition: var(--transition-medium);
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-dark);
    border-top: 3px solid var(--primary-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ---- Custom Cursor ---- */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: var(--z-modal);
    opacity: 0.7;
    transition: width 0.2s, height 0.2s;
}

.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    background: transparent;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: var(--z-modal);
    opacity: 0.5;
    transition: width 0.3s, height 0.3s, border 0.3s, opacity 0.3s;
}

/* ---- Header & Navigation ---- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    z-index: var(--z-fixed);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#header.sticky {
    height: 70px;
    background-color: rgba(12, 12, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}



.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.97), rgba(30, 30, 30, 0.97));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


#header.sticky {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 70px;
}

/* 3D Logo */
.logo a {
    display: flex;
    align-items: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo a:hover {
    transform: translateZ(10px) rotateX(5deg) rotateY(5deg);
}

.logo svg {
    margin-right: 10px;
    filter: drop-shadow(0 0 5px rgba(157, 78, 221, 0.3));
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo a:hover svg {
    transform: rotate(360deg) scale(1.1);
    filter: drop-shadow(0 0 8px rgba(157, 78, 221, 0.6));
}

.logo span {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: text-shadow 0.3s ease;
}

.logo a:hover span {
    text-shadow: 3px 3px 6px rgba(157, 78, 221, 0.4);
}

/* 3D Navigation Menu */
.navbar ul {
    display: flex;
    gap: 12px;
    background: linear-gradient(
        to right,
        rgba(15, 15, 20, 0.7),
        rgba(25, 20, 35, 0.7),
        rgba(15, 15, 20, 0.7)
    );
    border-radius: 30px;
    padding: 6px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 3px 10px rgba(157, 78, 221, 0.1),
        inset 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.navbar ul::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(157, 78, 221, 0.08),
        transparent 30%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    animation: pulse 8s infinite alternate;
}

.navbar ul:hover::before {
    opacity: 1;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.05; }
    50% { transform: scale(1.05); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0.05; }
}

.navbar li {
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.navbar li:hover {
    transform: translateY(-2px) scale(1.05);
}

.navbar a {
    position: relative;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 12px 24px;
    color: var(--text-color-light);
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    letter-spacing: 0.5px;
    overflow: hidden;
}

.navbar a span {
    position: relative;
    z-index: 2;
    display: block;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.navbar a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0.95);
}

.navbar a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: translateX(-100%);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

.navbar a.active {
    color: white;
    box-shadow: 
        0 5px 15px rgba(157, 78, 221, 0.4),
        0 0 20px rgba(157, 78, 221, 0.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.navbar a.active span {
    transform: translateY(-2px);
}

.navbar a.active::before {
    opacity: 1;
    transform: scale(1);
}

.navbar a:hover:not(.active) {
    color: white;
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.5);
}

.navbar a:hover:not(.active)::before {
    opacity: 0.9;
    transform: scale(1);
}

.navbar a:hover::after {
    animation: shine 1.5s ease;
}

@keyframes shine {
    0% { opacity: 0; transform: translateX(-100%); }
    20% { opacity: 0.8; }
    100% { opacity: 0; transform: translateX(100%); }
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 101;
}

.hamburger .line {
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    margin: 6px 0;
    transition: var(--transition-fast);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: var(--transition-medium);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
    perspective: 1000px;
}

.mobile-nav li {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-nav.active li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav.active li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active li:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav.active li:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav.active li:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav.active li:nth-child(5) { transition-delay: 0.5s; }

.mobile-nav a {
    font-size: 2.4rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--text-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: inline-block;
}

.mobile-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width 0.4s ease;
    border-radius: 2px;
}

.mobile-nav a:hover::after {
    width: 100%;
}

.mobile-nav a:hover {
    transform: translateY(-5px);
    text-shadow: 2px 2px 4px rgba(157, 78, 221, 0.3);
}

/* ---- Visitor Counter ---- */

#visitor-count {
    color: #9D4EDD; 
}

/* ---- Hero Section ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    background-color: var(--bg-color);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-text h1 {
    font-size: 5.6rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-text h1 span {
    display: block;
}

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

.hero-text h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color-light);
}

.hero-text p {
    font-size: 1.8rem;
    max-width: 600px;
    margin-bottom: 30px;
    color: var(--text-color-light);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.primary-btn {
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 60%);
    z-index: -1;
    transform: translateZ(-1px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-5px) translateZ(10px) rotateX(5deg);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.3),
        0 6px 12px rgba(157, 78, 221, 0.4);
    letter-spacing: 0.5px;
}

.primary-btn:hover::before {
    opacity: 1;
}

.secondary-btn {
    padding: 12px 30px;
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.secondary-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.secondary-btn:hover {
    color: white;
    transform: translateY(-5px) translateZ(10px) rotateX(5deg);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.2),
        0 6px 12px rgba(157, 78, 221, 0.3);
    border-color: transparent;
}

.secondary-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

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

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-color-lighter);
    color: var(--text-color);
    font-size: 1.8rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    z-index: 1;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    z-index: -1;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icons a:hover {
    color: white;
    transform: translateY(-5px) translateZ(10px) rotateX(10deg) rotateY(10deg);
    box-shadow: 
        -5px -5px 15px rgba(255, 255, 255, 0.05),
        5px 5px 15px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(157, 78, 221, 0.3);
}

.social-icons a:hover::before {
    opacity: 1;
}

.social-icons a i {
    transition: all 0.3s ease;
}

.social-icons a:hover i {
    transform: scale(1.2);
}

/* ---- Section Titles ---- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title .sub-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.section-title .title {
    font-size: 3.6rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

/* ---- About Section ---- */
.about {
    background-color: var(--bg-color-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-color-light);
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.info-item h4 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.info-item p {
    font-size: 1.6rem;
    margin-bottom: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-item {
    background-color: var(--bg-color-lighter);
    padding: 30px;
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    overflow: hidden;
    cursor: default;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.05) 0%, rgba(157, 78, 221, 0.1) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.4) 0%, rgba(157, 78, 221, 0) 70%);
    top: -25%;
    left: -25%;
    opacity: 0;
    z-index: -2;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.stat-item:hover {
    transform: translateY(-10px) rotateX(10deg) rotateY(10deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 15px 20px rgba(157, 78, 221, 0.2);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:hover::after {
    opacity: 0.7;
}

.stat-item h3 {
    font-size: 3.6rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(157, 78, 221, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover h3 {
    transform: scale(1.1) translateZ(30px);
    text-shadow: 3px 3px 6px rgba(157, 78, 221, 0.3);
}

.stat-item p {
    font-size: 1.6rem;
    color: var(--text-color-light);
    margin-bottom: 0;
    transition: all 0.3s ease;
    position: relative;
}

.stat-item:hover p {
    transform: translateZ(20px);
    color: var(--text-color);
}

/* ---- Skills Section ---- */
.skills-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.skills-category {
    background-color: var(--bg-color-light);
    padding: 30px;
    border-radius: var(--border-radius-md);
}

.skills-category h3 {
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 2.4rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skill-item {
    background-color: var(--bg-color-lighter);
    padding: 25px;
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    overflow: hidden;
    cursor: default;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.05) 0%, rgba(157, 78, 221, 0.1) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-item::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: var(--border-radius-md);
    top: 0;
    left: 0;
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: -2;
}

.skill-item:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg) translateZ(10px);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.2),
        0 10px 15px rgba(157, 78, 221, 0.15);
}

.skill-item:hover::before {
    opacity: 1;
}

.skill-item:hover::after {
    opacity: 1;
    transform: scale(1.05);
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: inline-block;
    filter: drop-shadow(0 0 5px rgba(157, 78, 221, 0.3));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-item:hover .skill-icon {
    transform: scale(1.2) translateZ(30px) rotate(10deg);
    filter: drop-shadow(0 0 8px rgba(157, 78, 221, 0.5));
    color: #9D4EDD;
}

.skill-item h4 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.skill-item:hover h4 {
    transform: translateZ(20px);
    text-shadow: 2px 2px 4px rgba(157, 78, 221, 0.2);
}

.skill-progress {
    width: 100%;
    height: 8px;
    background-color: var(--bg-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
    border-radius: 4px;
    width: 0%;
    transition: width 1.5s ease-in-out;
}

/* ---- Projects Section ---- */
.projects {
    background-color: var(--bg-color-light);
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background-color: var(--bg-color-lighter);
    color: var(--text-color);
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition-medium);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background-color: var(--bg-color-lighter);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    z-index: 1;
}

.project-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.05) 0%, rgba(157, 78, 221, 0.1) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg) translateZ(10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 15px 20px rgba(157, 78, 221, 0.1);
}

.project-card:hover::before {
    opacity: 1;
}

.project-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--bg-color);
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.project-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(157, 78, 221, 0.2) 0%,
        transparent 80%
    );
    opacity: 0;
    z-index: 2;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.project-img::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(157, 78, 221, 0.2);
    opacity: 0;
    z-index: 3;
    transform: translateZ(20px);
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.project-card:hover .project-img::before,
.project-card:hover .project-img::after {
    opacity: 1;
}

.project-img img, .project-img svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    filter: brightness(0.95);
}

.project-card:hover .project-img img,
.project-card:hover .project-img svg {
    transform: scale(1.07) translateZ(10px);
    filter: brightness(1.05);
}

.project-img .overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 20, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 3;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.project-card:hover .project-img .overlay {
    opacity: 1;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.project-img .overlay-content {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition-delay: 0.1s;
}

.project-card:hover .project-img .overlay-content {
    transform: translateY(0);
    opacity: 1;
}

.view-project-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 30px;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    display: inline-block;
    transform: translateZ(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(157, 78, 221, 0.3);
}

.view-project-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: translateX(-100%);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

.view-project-btn:hover::before {
    animation: shine 1.5s ease infinite;
}

@keyframes shine {
    0% { opacity: 0; transform: translateX(-100%); }
    20% { opacity: 0.8; }
    100% { opacity: 0; transform: translateX(100%); }
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.project-info p {
    font-size: 1.5rem;
    color: var(--text-color-light);
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tech span {
    padding: 5px 10px;
    background-color: var(--bg-color);
    color: var(--text-color-light);
    border-radius: 20px;
    font-size: 1.2rem;
}

.project-links {
    display: flex;
    gap: 15px;
}

.link-btn {
    padding: 8px 15px;
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: var(--border-radius-sm);
    font-size: 1.4rem;
    transition: var(--transition-medium);
}

.link-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.link-btn i {
    margin-right: 5px;
}

/* ---- Contact Section ---- */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    background-color: var(--bg-color-light);
    padding: 25px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.05) 0%, rgba(157, 78, 221, 0.1) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(5deg) translateZ(10px);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.15),
        0 10px 15px rgba(157, 78, 221, 0.1);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-color-lighter);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 5px rgba(157, 78, 221, 0.2));
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) translateZ(25px);
    color: #9D4EDD;
    filter: drop-shadow(0 0 8px rgba(157, 78, 221, 0.4));
    background-color: rgba(255, 255, 255, 0.1);
}

.contact-details h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.contact-details p {
    font-size: 1.6rem;
    color: var(--text-color-light);
    margin-bottom: 0;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-color-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    z-index: 1;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    z-index: -1;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.social-link:hover {
    color: white;
    transform: translateY(-5px) translateZ(10px) rotateX(10deg) rotateY(10deg);
    box-shadow: 
        -3px -3px 10px rgba(255, 255, 255, 0.05),
        3px 3px 10px rgba(0, 0, 0, 0.15),
        0 8px 15px rgba(157, 78, 221, 0.3);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link i {
    transition: all 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.2);
}

.contact-form-wrapper {
    background-color: var(--bg-color-light);
    padding: 30px;
    border-radius: var(--border-radius-md);
}

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

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    padding-left: 45px;
    background-color: var(--bg-color-lighter);
    color: var(--text-color);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-medium);
}

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

.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 2px var(--primary-color);
}

.form-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    font-size: 1.6rem;
    color: var(--primary-color);
}

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

.submit-btn {
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: var(--transition-medium);
    cursor: pointer;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
}

.submit-btn i {
    transition: var(--transition-medium);
}

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

.form-message { padding: 15px; 
               border-radius: 4px; 
               margin-top: 10px; 
}
.form-message.success { 
    background-color: rgba(40, 167, 69, 0.1); 
    border-left: 4px solid #28a745; 
}

.form-message.error { 
    background-color: rgba(220, 53, 69, 0.1); 
    border-left: 4px solid #dc3545; 
}

/* ---- Footer ---- */
.footer {
    background-color: var(--bg-color-light);
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    margin-bottom: 0;
    font-size: 1.4rem;
    color: var(--text-color-light);
}

.back-to-top {
    margin-left: auto;
}

.top-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.6rem;
    transition: var(--transition-medium);
}

.top-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* ---- Animation Classes ---- */
.reveal-text {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ---- 3D Effects ---- */
.skill-item, .project-card, .stat-item, .contact-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skill-item:hover, .project-card:hover, .stat-item:hover, .contact-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.skill-icon, .project-info h3, .stat-item h3, .contact-icon {
    transform: translateZ(20px);
}

.project-img {
    overflow: hidden;
    position: relative;
}

.project-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.3) 0%, rgba(0, 0, 0, 0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-img::after {
    opacity: 1;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

.delay-600 {
    transition-delay: 0.6s;
}

.delay-700 {
    transition-delay: 0.7s;
}

.delay-800 {
    transition-delay: 0.8s;
}

.delay-900 {
    transition-delay: 0.9s;
}


.loading-page {
  position: absolute;
  backdrop-filter: blur(10px);
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  z-index: 1000;
}
#svg {
  height: 350px;
  width: 350px;
  stroke: #b390d0;
  fill-opacity: 0;
  stroke-width: 6px;
  stroke-dasharray: 4500;
  animation: draw 8s ease;
filter: drop-shadow(0 0 10px #9D4EDD) drop-shadow(0 0 20px #9D4EDD);
}
@keyframes draw {
  0% { stroke-dashoffset: 4500; }
  100% { stroke-dashoffset: 0; }
}
.name-container {
  color: #b390d0;
  font-size: 20px;
  letter-spacing: 12px;
  text-transform: uppercase;
  margin-left: 20px;
  font-weight: bolder;
    text-shadow: 
        0 0 5px #9D4EDD, 
        0 0 10px #9D4EDD, 
        0 0 15px #9D4EDD, 
        0 0 20px #9D4EDD, 
        0 0 30px #9D4EDD;
    }
}