/* Base styles and variables */
:root {
    --primary-color: #6c63ff;
    --secondary-color: #4a41d6;
    --accent-color: #ff6584;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #777;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    gap: 15px;
}

.loader-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: bounce 1.4s infinite ease-in-out both;
}

.loader-circle:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-circle:nth-child(2) {
    animation-delay: -0.16s;
}

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

/* Login Modal */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.login-modal.active {
    display: flex;
}

.login-content {
    padding: 3rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.4s ease;
}

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

.login-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.login-content p {
    color: #ddd;
    margin-bottom: 2rem;
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#login-form input {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

#login-form input::placeholder {
    color: #888;
}

#login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.login-error {
    color: var(--danger-color);
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 20px;
}

/* Admin Dashboard Styles */

.admin-toggle:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.6);
}

.admin-dashboard {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    height: 100vh;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
}

.admin-dashboard.active {
    right: 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.admin-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.admin-close:hover {
    transform: rotate(90deg);
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-tab {
    flex: 1;
    min-width: 100px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.admin-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.admin-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.admin-content {
    padding: 20px;
}

.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.admin-panel h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.admin-panel .form-group {
    margin-bottom: 15px;
}

.admin-panel label {
    display: block;
    color: #ddd;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.admin-panel input,
.admin-panel textarea,
.admin-panel select {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.admin-panel input:focus,
.admin-panel textarea:focus,
.admin-panel select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.admin-panel input::placeholder,
.admin-panel textarea::placeholder,
.admin-panel select option {
    color: #888;
}

.admin-panel select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
}

.admin-panel small {
    color: #aaa;
    font-size: 0.8rem;
}

.skill-manager {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.skill-manager select,
.skill-manager input {
    height: 45px;
}

.skill-manager .btn {
    height: 45px;
    padding: 0 1.5rem;
    white-space: nowrap;
}

.items-list {
    margin-top: 20px;
}

.item-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: move;
}

.item-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.item-card.dragging {
    opacity: 0.5;
    transform: scale(1.05);
    cursor: grabbing;
}

.item-card.drag-over {
    border-color: var(--primary-color);
    background: rgba(108, 99, 255, 0.1);
}

.drag-handle {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
    cursor: grab;
    padding: 5px;
    transition: color 0.3s ease;
}

.drag-handle:hover {
    color: rgba(255, 255, 255, 0.6);
}

.item-card.dragging .drag-handle {
    cursor: grabbing;
}

.item-info {
    flex: 1;
    color: white;
}

.item-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.item-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #aaa;
}

.item-actions {
    display: flex;
    gap: 10px;
}

.item-actions button {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

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

.btn-delete {
    background: var(--danger-color);
    color: white;
}

.btn-edit:hover,
.btn-delete:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.admin-footer {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-footer .btn {
    flex: 1;
    min-width: 120px;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll[data-delay="100"] {
    transition-delay: 0.1s;
}

.animate-on-scroll[data-delay="200"] {
    transition-delay: 0.2s;
}

.animate-on-scroll[data-delay="300"] {
    transition-delay: 0.3s;
}

.animate-on-scroll[data-delay="400"] {
    transition-delay: 0.4s;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

h2 span {
    color: var(--primary-color);
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.3rem;
}

p {
    margin: 1rem 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    transition: transform 0.5s;
    transform: scaleX(0);
    transform-origin: left;
}

.btn:hover::before {
    transform: scaleX(1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin-left: 1rem;
}

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

/* Glassmorphism effect */
.glass-card {
    background: var(--glass-bg);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(31, 38, 135, 0.45);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    position: relative;
}

.logo span {
    color: var(--primary-color);
    position: relative;
}

.logo span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    bottom: 2px;
    left: 0;
    border-radius: 1px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.nav-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.nav-social .social-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

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

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 200;
}

.burger .line1 {
    transform-origin: 0% 0%;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.burger .line2 {
    opacity: 1;
    transition: opacity 0.4s ease;
}

.burger .line3 {
    transform-origin: 0% 100%;
    transition: transform 0.4s ease;
}

.burger.toggle .line1 {
    transform: rotate(45deg) translate(5px, 6px);
}

.burger.toggle .line2 {
    opacity: 0;
}

.burger.toggle .line3 {
    transform: rotate(-45deg) translate(5px, -7px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float-around 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    bottom: -50px;
    right: -50px;
    animation-delay: -7s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    top: 50%;
    right: 10%;
    animation-delay: -14s;
}

@keyframes float-around {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    75% {
        transform: translate(30px, 50px) scale(1.05);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(108, 99, 255, 0.15) 0%, rgba(26, 26, 46, 0) 70%);
    z-index: 1;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    position: relative;
    text-align: center;
    width: 100%;
}

.hero-image {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 2.5rem;
}

.hero-profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.5);
    transition: all 0.5s ease;
}

.hero-profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 80px rgba(108, 99, 255, 0.7);
}

.profile-ring {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: rotate-ring 10s linear infinite;
    opacity: 0.6;
}

@keyframes rotate-ring {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero h1 {
    color: white;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
    font-size: 3.5rem;
}

.hero h1 span {
    color: var(--primary-color);
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    bottom: 10px;
    left: 0;
    border-radius: 3px;
    animation: lineExpand 1s ease forwards;
    animation-delay: 0.5s;
}

@keyframes lineExpand {
    from { width: 0; }
    to { width: 100%; }
}

.hero h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    animation-delay: 0.3s;
    font-weight: 500;
}

.hero p {
    color: #ddd;
    font-size: 1.15rem;
    margin: 0 auto 2.5rem;
    max-width: 700px;
    animation: fadeInUp 1s ease;
    animation-delay: 0.6s;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease;
    animation-delay: 0.9s;
}

/* Section Styling */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    color: white;
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto;
    border-radius: 2px;
    animation: lineExpand 0.5s ease;
    animation-delay: 0.2s;
}

.section-subtitle {
    color: #aaa;
    font-size: 1.1rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* About Section */
.about {
    padding: 6rem 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-img {
    flex: 1;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
}

.profile-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.profile-img::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    top: -25%;
    left: -25%;
}

.about-text {
    flex: 1;
    color: #ddd;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    min-width: 24px;
    animation: pulse 2s infinite;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.hero-social {
    justify-content: center;
    margin-top: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

/* Skills Section */
.skills {
    padding: 6rem 0;
    background-color: rgba(0, 0, 0, 0.1);
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.skill-category {
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    position: relative;
}

.skill-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.3);
}

.skill-category h3 {
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    position: relative;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.skill-bars {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1rem 0;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(74, 65, 214, 0.1));
    border: 2px solid rgba(108, 99, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.skill-tag.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

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

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag:hover {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(74, 65, 214, 0.2));
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.3);
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.skill-name {
    color: white;
    font-weight: 500;
    font-size: 1rem;
}

.skill-level {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    min-width: 60px;
    text-align: right;
}

.skill-bar {
    margin-bottom: 1.5rem;
}

.skill-bar p {
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.progress {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

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

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    position: relative;
    width: 0;
    transition: width 1.5s ease;
}

/* Projects Section */
.projects {
    padding: 6rem 0;
}

/* Video Section */
.video {
    padding: 6rem 0;
}

.video-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    padding: 2rem;
    text-align: center;
}

.stat-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #ddd;
    font-size: 1.1rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.video-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.video-item iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: 0;
}

@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Resources Section */
.resources {
    padding: 6rem 0;
    background-color: rgba(0, 0, 0, 0.1);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.resource-card {
    padding: 1.8rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.resource-card h3 {
    color: white;
    margin-bottom: 0.6rem;
}

.resource-card p {
    color: #ddd;
}

.resource-card:hover {
    transform: translateY(-4px);
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.4s;
}

.filter-btn:hover::before {
    left: 100%;
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-item {
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

.project-img {
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.project-img::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    top: -25%;
    left: -25%;
}

.project-info {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.8rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.project-info h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.project-tech {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.project-desc {
    color: #ddd;
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.project-link i {
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: white;
}

.project-link:hover i {
    transform: translateX(5px);
}

/* Education Section */
.education {
    padding: 6rem 0;
    background-color: rgba(0, 0, 0, 0.1);
}

.experience-section,
.education-section,
.certs-section {
    margin-bottom: 4rem;
}

.experience-section h3,
.education-section h3,
.certs-section h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.experience-section h3 i,
.education-section h3 i,
.certs-section h3 i {
    color: var(--primary-color);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.experience-card {
    padding: 2rem;
}

.exp-header {
    margin-bottom: 1rem;
}

.exp-header h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.exp-company {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.exp-date,
.exp-location,
.exp-desc {
    color: #ddd;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exp-date i,
.exp-location i,
.exp-desc i {
    color: var(--primary-color);
}

.education-card {
    padding: 2rem;
}

.education-card h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.edu-university {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.edu-date,
.edu-grade {
    color: #ddd;
    margin: 0.3rem 0;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    position: relative;
}

.cert-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    font-size: 1.8rem;
    color: white;
}

.cert-card h4 {
    font-size: 1.1rem;
    line-height: 1.4;
    color: white;
    margin-bottom: 0.8rem;
}

.cert-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.cert-provider {
    color: #ddd;
    font-weight: 500;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .admin-dashboard {
        width: 100%;
        right: -100%;
    }
    
    .skill-manager {
        grid-template-columns: 1fr;
    }
    
    .skill-manager .btn {
        width: 100%;
    }
    
    .certs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .certs-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Section */
.contact {
    padding: 6rem 0;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-info-card {
    padding: 2rem;
    text-align: center;
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    font-size: 2rem;
    color: white;
}

.contact-info-card h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contact-info-card p {
    color: #ddd;
    font-size: 1rem;
}

.contact-form {
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

.contact-form .btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Success Notification */
.success-notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--success-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(40, 167, 69, 0.3);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.success-content {
    text-align: center;
    color: white;
}

.success-content i {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.success-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.success-content p {
    color: #ddd;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    text-align: center;
}

.footer-content h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-content h3 span {
    color: var(--primary-color);
}

.footer-content p {
    color: #ddd;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.copyright {
    color: #aaa;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 992px) {
    /* Keep horizontal timeline on smaller screens with horizontal scrolling */
    .timeline::before {
        left: 0;
        right: 0;
        margin-left: 0;
    }

    .timeline-item {
        margin-left: 0;
    }

    .timeline-item:nth-child(odd) {
        text-align: left;
    }

    .timeline-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Hero adjustments */
    .hero {
        min-height: 100vh;
        padding: 6rem 0 3rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-image {
        width: 220px;
        height: 220px;
        margin: 0 auto 1.5rem;
    }
    
    .hero-profile-img {
        border-width: 4px;
    }
    
    .profile-ring {
        top: -12px;
        left: -12px;
        right: -12px;
        bottom: -12px;
        border-width: 2px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.4rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .navbar .container {
        padding: 0 1rem;
    }
    
    .nav-social {
        gap: 0.5rem;
    }
    
    .nav-social .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .burger {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(26, 26, 46, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem;
        border-radius: 0 0 20px 20px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-btns .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .btn-outline {
        margin-left: 0;
    }
    
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }

    /* Projects grid to 1 column on small tablets */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Video grid to single column */
    .video-grid {
        grid-template-columns: 1fr;
    }

    /* Certificates: reduce to 2 per row for readability */
    .timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .timeline-content {
        min-height: 160px;
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-image {
        width: 200px;
        height: 200px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }

    /* Certificates: 1 per row on phones */
    .timeline {
        grid-template-columns: 1fr;
    }
    .timeline-content {
        min-height: 140px;
    }
}