/* Reset and Base Styles */

/* Persian Font */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');

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

:root {
    --primary-color: #2563eb;
    --secondary-color: #000000;
    --accent-color: #ef4444;
    --green-color: #10b981;
    --text-color: #000000;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-dark: #f3f4f6;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loading-spinner {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(37, 99, 235, 0.2);
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.loading-spinner img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    animation: spin-reverse 1s linear infinite;
}

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    background: #000000;
    border-radius: 60px;
    z-index: 1000;
    transition: var(--transition);
    padding: 10px 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.4);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand a {
    font-size: 1.6rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-profile {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff6b35;
}

.nav-logo {
    width: 45px;
    height: 45px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
}

.nav-brand a:hover {
    color: #10b981;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.nav-item:first-child .nav-link {
    background: #ef4444;
    color: white;
    padding: 12px 35px;
    border-radius: 40px;
}

.nav-item:first-child .nav-link:hover {
    background: #dc2626;
    color: white;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 12px 25px;
    border-radius: 40px;
}

.nav-link:hover {
    color: #10b981;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #10b981;
}

/* User Section */
.user-section {
    position: relative;
}

/* Login Button */
.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #2563eb;
    color: white;
    border: 2px solid transparent;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}

.login-btn:hover {
    background: white;
    color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.3);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

.login-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.login-btn:hover i {
    transform: scale(1.1);
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px 6px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.user-profile::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #2563eb;
    object-fit: cover;
}

.user-name {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: #1a1a1a;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.user-profile:hover .profile-dropdown,
.profile-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-profile.active .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #2563eb;
    object-fit: cover;
}

.dropdown-info {
    flex: 1;
}

.dropdown-name {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.dropdown-username {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-family: 'Courier New', Courier, monospace;
}

.dropdown-id {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.id-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 600;
}

.id-value {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-family: 'Courier New', Courier, monospace;
    flex: 1;
}

.copy-id-btn {
    background: transparent;
    border: none;
    color: #2563eb;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.copy-id-btn:hover {
    background: rgba(37, 99, 235, 0.15);
    transform: scale(1.1);
}

.copy-id-btn:active {
    transform: scale(0.95);
}

.copy-id-btn.copied {
    color: #10b981;
}

.dropdown-admin {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-top: 1px solid #e5e7eb;
}

.dropdown-admin:hover {
    background: rgba(37, 99, 235, 0.1);
}

.dropdown-admin i {
    font-size: 1rem;
}

.dropdown-admin-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border-top: 1px solid #e5e7eb;
}

.dropdown-admin-panel:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.dropdown-admin-panel i {
    font-size: 1rem;
    color: #2563eb;
}

.dropdown-user-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border-top: 1px solid #e5e7eb;
}

.dropdown-user-panel:hover {
    background: rgba(16, 185, 129, 0.1);
}

.dropdown-user-panel i {
    font-size: 1rem;
    color: #10b981;
}

.dropdown-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 14px 14px;
}

.dropdown-logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

.dropdown-logout i {
    font-size: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    color: white;
    text-align: center;
    position: relative;
    padding: 140px 20px 80px;
    overflow: hidden;
}

.glass-effect {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, rgba(16, 185, 129, 0.3) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glassFloat 8s ease-in-out infinite;
}

@keyframes glassFloat {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-60%, -45%) scale(1.1);
    }
}

.hero-content {
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.highlight {
    color: #10b981;
    position: relative;
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: #ef4444;
    color: white;
}

.btn-primary:hover {
    background: #dc2626;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: white;
    color: #2563eb;
    transform: translateY(-5px);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: white;
    font-size: 2rem;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    color: #000000;
}

.section-title::after {
    content: '';
    width: 100px;
    height: 4px;
    background: #2563eb;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* About Section */
.about {
    background: var(--bg-light);
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.about-image {
    text-align: center;
    position: sticky;
    top: 100px;
}

.profile-image {
    width: 100%;
    max-width: 350px;
    height: 350px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.2);
    border: 4px solid var(--primary-color);
    transition: var(--transition);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 70px rgba(37, 99, 235, 0.3);
}

.image-placeholder {
    width: 100%;
    max-width: 350px;
    height: 350px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.2);
}

.image-placeholder i {
    font-size: 150px;
    color: white;
}

.about-text {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-info {
    margin: 30px 0;
    display: grid;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.info-item:hover {
    background: rgba(37, 99, 235, 0.05);
    transform: translateX(5px);
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
}

.info-item span {
    color: var(--text-dark);
    font-weight: 500;
}

/* Skills Section */
.skills {
    background: var(--bg-dark);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.skills .section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-top: -20px;
    margin-bottom: 60px;
}

.skills-categories {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.skill-category {
    position: relative;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.category-title i {
    color: var(--primary-color);
    font-size: 28px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.skill-card {
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.2);
    border-color: var(--primary-color);
}

.skill-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 40px;
    color: white;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

/* Icon Colors */
.skill-icon.html {
    background: linear-gradient(135deg, #e44d26, #f16529);
}

.skill-icon.css {
    background: linear-gradient(135deg, #264de4, #2965f1);
}

.skill-icon.js {
    background: linear-gradient(135deg, #f0db4f, #f7df1e);
    color: #000 !important;
}

.skill-icon.ts {
    background: linear-gradient(135deg, #007acc, #3178c6);
}

.skill-icon.react {
    background: linear-gradient(135deg, #61dafb, #00d8ff);
    color: #000 !important;
}

.skill-icon.next {
    background: linear-gradient(135deg, #000000, #1a1a1a);
}

.skill-icon.sass {
    background: linear-gradient(135deg, #cd6799, #cc6699);
}

.skill-icon.php {
    background: linear-gradient(135deg, #777bb3, #8892bf);
}

.skill-icon.node {
    background: linear-gradient(135deg, #68a063, #6cc24a);
}

.skill-icon.mysql {
    background: linear-gradient(135deg, #00758f, #00a2c7);
}

.skill-icon.json {
    background: linear-gradient(135deg, #292929, #000000);
}

.skill-icon.git {
    background: linear-gradient(135deg, #f05032, #f34f29);
}

.skill-icon.responsive {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.skill-icon.api {
    background: linear-gradient(135deg, #10b981, #059669);
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .skill-card {
        padding: 25px 15px;
    }
    
    .skill-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .skill-card h4 {
        font-size: 14px;
    }
    
    .category-title {
        font-size: 20px;
    }
}

/* Projects Section */
/* Projects Section - Ultimate Design */
.projects {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
    animation: pulseGlow 10s ease-in-out infinite;
}

.projects::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    border-radius: 50%;
    animation: pulseGlow 12s ease-in-out infinite reverse;
}

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

.projects-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.projects-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: -2px;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    font-weight: 400;
}

/* Projects Note */
.projects-note {
    margin-top: 20px;
    padding: 20px 30px;
    background: rgba(37, 99, 235, 0.1);
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: pulse 2s infinite;
}

.projects-note i {
    font-size: 1.5rem;
    color: #2563eb;
}

.projects-note p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Slider Wrapper with Navigation Buttons */
.projects-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    z-index: 1;
}

/* Slider Container */
.projects-slider-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Projects Slider */
.projects-slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

/* Navigation Buttons */
.slider-btn {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.slider-btn:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.slider-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1);
    box-shadow: none;
}

/* Slider Indicators (Dots) */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.indicator.active {
    background: #ef4444;
    width: 40px;
    border-radius: 10px;
}

/* Project Card with Advanced Effects */
.project-card {
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px;
    padding-bottom: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: visible;
    box-sizing: border-box;
}

.project-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    border-radius: 0 0 30px 0;
    pointer-events: none;
    z-index: 1;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 30px;
    pointer-events: none;
}

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

.project-card:hover {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(239, 68, 68, 0.3);
}

/* Animated Gradient Background */
.project-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(239, 68, 68, 0.1) 50%, 
        transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
    animation: rotateGradient 10s linear infinite;
    pointer-events: none;
}

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

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

/* Project Number Badge */
.project-number {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
    z-index: 2;
    transition: all 0.3s ease;
}

.project-card:hover .project-number {
    transform: rotate(360deg) scale(1.1);
}

/* Project Image Wrapper */
.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
    pointer-events: none;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

/* Project Icon */
.project-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    transform: scale(0.8);
    pointer-events: none;
}

.project-card:hover .project-icon {
    transform: scale(1) rotate(5deg);
}

.project-icon i {
    font-size: 2.5rem;
    color: white;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Project Title */
.project-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

/* Project Description */
.project-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

/* Tech Stack Badges */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.tech-badge {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    transform: translateY(-2px);
}

/* Project Links */
.project-links {
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 999;
    pointer-events: auto;
}

.project-link {
    flex: 1;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: white;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 999;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    pointer-events: auto;
}

.project-link:hover {
    transform: translateY(-3px);
}

.project-link:nth-child(1):hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #2563eb;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.project-link:nth-child(2):hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.project-link-details {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
}

.project-link-details:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-color: #8b5cf6;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
    transform: translateY(-3px);
}

.project-link i {
    font-size: 1rem;
}

.project-card:hover .project-icon i {
    transform: translate(3px, 3px);
}

.project-view-btn:active {
    transform: scale(0.95);
}

/* Blog Section */
.blog-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.blog-section .section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-top: -20px;
    margin-bottom: 60px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.blog-loading i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.blog-loading p {
    font-size: 18px;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 30px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.blog-card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.blog-card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.blog-card-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.blog-card-stats {
    display: flex;
    gap: 20px;
}

.blog-card-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 14px;
}

.blog-card-stat i {
    color: var(--primary-color);
}

.blog-card-read-more {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.3s ease;
}

.blog-card:hover .blog-card-read-more {
    gap: 12px;
}

.blog-view-all {
    text-align: center;
    margin-top: 40px;
}

.blog-view-all .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    font-size: 16px;
    transition: all 0.3s ease;
}

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

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

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

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

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #000000;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

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

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: #10b981;
    margin-top: 5px;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: #000000;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

.contact-form {
    background: var(--bg-dark);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 80px 0 30px;
}

.footer-top {
    margin-bottom: 60px;
}

.footer-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-cta h2 {
    font-size: 3rem;
    margin: 0;
    font-weight: 700;
}

.btn-hire {
    background: #ef4444;
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-hire:hover {
    background: #dc2626;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 50px 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: #2563eb;
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-about {
    max-width: 400px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-profile {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2563eb;
}

.footer-logo {
    width: 50px;
    height: 50px;
    background: #ff6b35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.3rem;
}

.footer-brand span {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.footer-about p {
    color: #b0b0b0;
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: #2563eb;
    transform: translateY(-3px);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #2563eb;
    transform: translateX(5px);
}

.newsletter-form {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 5px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: white;
    font-size: 1rem;
    outline: none;
}

.newsletter-form input::placeholder {
    color: #666;
}

.newsletter-form button {
    background: #10b981;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background: #059669;
    transform: scale(1.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 30px;
}

.footer-bottom p {
    margin: 0;
    color: #b0b0b0;
}

.footer-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #2563eb;
}

.footer-links span {
    color: #b0b0b0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top:hover {
    background: #10b981;
    transform: translateY(-5px);
}

.back-to-top.show {
    display: flex;
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Logout Confirmation Modal */
.logout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.logout-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.logout-modal {
    background: #1a1a1a;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.logout-modal-overlay.active .logout-modal {
    transform: scale(1) translateY(0);
}

.logout-modal-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 2rem;
}

.logout-modal-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.logout-modal-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

.logout-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.logout-modal-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.logout-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.logout-confirm {
    background: #ef4444;
    color: white;
    border: 2px solid transparent;
}

.logout-confirm:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

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

.logout-modal-btn i {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
        gap: 6px;
    }

    .login-btn span {
        display: none;
    }

    .login-btn i {
        font-size: 1.1rem;
    }

    /* User Profile - Mobile */
    .user-profile {
        padding: 4px;
        gap: 0;
    }

    .user-name {
        display: none;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
    }

    .profile-dropdown {
        right: -10px;
        min-width: 220px;
    }

    /* Show dropdown on click for mobile */
    .user-profile.active .profile-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .hamburger {
        display: flex;
    }

    .navbar {
        top: 10px;
        width: 90%;
        padding: 10px 20px;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #000000;
        flex-direction: column;
        padding: 20px;
        border-radius: 30px;
        margin-top: 10px;
        box-shadow: var(--shadow);
        transition: var(--transition);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-item:first-child .nav-link {
        background: #ef4444;
        text-align: center;
    }

    .nav-link {
        text-align: center;
        padding: 12px 20px;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        position: static;
    }

    .profile-image,
    .image-placeholder {
        max-width: 280px;
        height: 280px;
    }

    .image-placeholder i {
        font-size: 120px;
    }
    
    .about-text {
        padding: 30px 20px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .skill-card {
        padding: 20px 15px;
    }
    
    .skill-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .skill-card h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .progress-bar {
        height: 6px;
    }
    
    .progress-label {
        font-size: 0.85rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .projects {
        padding: 80px 0;
    }

    .projects-header {
        margin-bottom: 50px;
    }

    .projects-header h2 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .projects-slider-wrapper {
        gap: 15px;
        margin-bottom: 30px;
    }

    .slider-btn {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 1.1rem;
    }

    .project-card {
        padding: 25px 20px;
        padding-bottom: 40px;
        border-radius: 20px;
    }

    .project-card::after {
        width: 80px;
        height: 80px;
        border-radius: 0 0 20px 0;
    }

    .project-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        top: 15px;
        right: 15px;
    }

    .project-image-wrapper {
        height: 200px;
        border-radius: 16px;
        margin-bottom: 20px;
    }

    .project-icon {
        width: 70px;
        height: 70px;
        border-radius: 18px;
    }

    .project-icon i {
        font-size: 2rem;
    }

    .project-card h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .project-card p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .project-tech {
        gap: 8px;
        margin-bottom: 20px;
    }

    .tech-badge {
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    .project-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .project-link {
        flex: 1 1 calc(50% - 5px);
        min-width: 140px;
        padding: 12px 14px;
        font-size: 0.88rem;
        border-radius: 12px;
    }

    .project-link-details {
        flex: 1 1 100%;
    }

    .project-link i {
        font-size: 0.9rem;
    }

    .slider-indicators {
        gap: 8px;
        margin-top: 30px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .indicator.active {
        width: 30px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-cta {
        flex-direction: column;
        text-align: center;
    }

    .footer-cta h2 {
        font-size: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px;
    }

    /* Logout Modal - Mobile */
    .logout-modal {
        padding: 28px 24px;
        border-radius: 16px;
    }

    .logout-modal-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        margin-bottom: 16px;
    }

    .logout-modal-title {
        font-size: 1.3rem;
    }

    .logout-modal-text {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

    .logout-modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .logout-modal-btn {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
    }

    /* Projects Section for Small Mobile */
    .projects {
        padding: 60px 0;
    }

    .projects-header {
        margin-bottom: 40px;
    }

    .projects-header h2 {
        font-size: 1.8rem;
        letter-spacing: -0.5px;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .projects-slider-wrapper {
        gap: 10px;
        margin-bottom: 25px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1rem;
    }

    .project-card {
        padding: 20px 15px;
        padding-bottom: 35px;
        border-radius: 18px;
    }

    .project-card::after {
        width: 70px;
        height: 70px;
        border-radius: 0 0 18px 0;
    }

    .project-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: 12px;
        right: 12px;
    }

    .project-image-wrapper {
        height: 180px;
        border-radius: 14px;
        margin-bottom: 18px;
    }

    .project-icon {
        width: 60px;
        height: 60px;
        border-radius: 15px;
    }

    .project-icon i {
        font-size: 1.8rem;
    }

    .project-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .project-card p {
        font-size: 0.9rem;
        margin-bottom: 18px;
        line-height: 1.5;
    }

    .project-tech {
        gap: 6px;
        margin-bottom: 18px;
    }

    .tech-badge {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    .project-links {
        flex-direction: column;
        gap: 8px;
    }

    .project-link {
        flex: 1 1 100%;
        padding: 11px 14px;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .project-link i {
        font-size: 0.85rem;
    }

    .slider-indicators {
        gap: 6px;
        margin-top: 25px;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    .indicator.active {
        width: 24px;
    }
}

/* Login Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 30px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    transform: rotate(90deg);
}

.modal-content {
    padding: 50px 40px 40px;
}

.modal-header {
    text-align: center;
    margin-bottom: 40px;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #0088cc 0%, #00a8e8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 136, 204, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 136, 204, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(0, 136, 204, 0.5);
    }
}

.modal-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 10px;
    font-weight: 700;
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.modal-body {
    color: white;
}

/* Login Tabs */
.login-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn i {
    font-size: 1.1rem;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: linear-gradient(135deg, #0088cc 0%, #00a8e8 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

/* Login Methods */
.login-method {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.login-method.active {
    display: block;
}

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

.method-description {
    text-align: center;
    margin-bottom: 25px;
}

.method-description p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Widget Login */
.telegram-widget-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 2px dashed rgba(0, 136, 204, 0.3);
}

.method-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-align: center;
}

.feature-item i {
    font-size: 1.5rem;
    color: #0088cc;
}

.feature-item span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Manual Login Form */
.manual-login-form {
    position: relative;
    min-height: 300px;
}

.login-step {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.login-step.active {
    display: block;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}

.form-group label i {
    color: #0088cc;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #0088cc;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(0, 136, 204, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.code-input {
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 8px;
    font-weight: 700;
}

.input-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.submit-btn {
    width: 100%;
    padding: 15px 25px;
    background: linear-gradient(135deg, #0088cc 0%, #00a8e8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 136, 204, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.5);
}

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

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.back-btn {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Bot Instruction */
.bot-instruction {
    text-align: center;
    padding: 30px 20px;
}

.instruction-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #0088cc 0%, #00a8e8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.bot-instruction h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: white;
}

.bot-instruction p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

.bot-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #0088cc 0%, #00a8e8 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    margin: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 136, 204, 0.3);
}

.bot-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.5);
}

.bot-link i {
    font-size: 1.2rem;
}

.instruction-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 15px;
}

/* User Confirmation */
.user-confirmation {
    text-align: center;
    padding: 20px;
}

.confirmation-header {
    margin-bottom: 25px;
}

.confirmation-header i {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 10px;
}

.confirmation-header h3 {
    font-size: 1.4rem;
    color: white;
}

.user-preview {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin-bottom: 20px;
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.preview-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #0088cc;
    object-fit: cover;
}

.preview-info {
    flex: 1;
    text-align: left;
}

.preview-info h4 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 5px;
}

.preview-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.confirmation-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-size: 1rem;
}

.confirmation-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    z-index: 10;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #0088cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#loadingText {
    color: white;
    font-size: 0.95rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    pointer-events: all;
    transform: translateX(400px);
    opacity: 0;
    animation: slideInToast 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    border-left: 4px solid;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.info {
    border-left-color: #2563eb;
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #10b981;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast.info .toast-icon {
    color: #2563eb;
}

.toast.warning .toast-icon {
    color: #f59e0b;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #000;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

.toast.hiding {
    animation: slideOutToast 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInToast {
    0% {
        transform: translateX(400px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToast {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(400px);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .toast-container {
        right: 15px;
        left: 15px;
        top: 80px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .projects-note {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
    }
    
    .projects-note p {
        font-size: 0.9rem;
    }
}

.telegram-login-wrapper {
    margin-bottom: 30px;
}

.telegram-info {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 136, 204, 0.3);
    transform: translateX(5px);
}

.info-card i {
    font-size: 1.5rem;
    color: #0088cc;
    min-width: 30px;
}

.info-card h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: white;
}

.info-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.telegram-login-button {
    text-align: center;
}

.telegram-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #0088cc 0%, #00a8e8 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 136, 204, 0.3);
}

.telegram-btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.telegram-btn-content i {
    font-size: 1.5rem;
}

.telegram-btn-shine {
    position: absolute;
    top: -50%;
    left: -100%;
    width: 100%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(25deg);
    transition: left 0.6s ease;
}

.telegram-btn:hover .telegram-btn-shine {
    left: 100%;
}

.telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.5);
}

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

.telegram-note {
    margin-top: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.telegram-note i {
    color: #0088cc;
}

.modal-divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.modal-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.modal-divider span {
    position: relative;
    background: #1a1a2e;
    padding: 0 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.telegram-benefits ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.telegram-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.telegram-benefits i {
    color: #0088cc;
    font-size: 1rem;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        padding: 50px 25px 30px;
    }

    .modal-title {
        font-size: 1.6rem;
    }

    .login-tabs {
        flex-direction: column;
        gap: 8px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .method-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .feature-item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 12px 15px;
    }

    .user-preview {
        flex-direction: column;
        text-align: center;
    }

    .preview-info {
        text-align: center;
    }

    .telegram-benefits ul {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .info-card {
        padding: 15px;
    }

    .telegram-btn {
        padding: 16px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-container {
        width: 95%;
        border-radius: 20px;
    }

    .modal-content {
        padding: 40px 20px 25px;
    }

    .modal-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .modal-subtitle {
        font-size: 0.9rem;
    }

    .info-card {
        padding: 12px;
        gap: 12px;
    }

    .info-card i {
        font-size: 1.2rem;
    }

    .info-card h4 {
        font-size: 0.95rem;
    }

    .info-card p {
        font-size: 0.85rem;
    }
}

.category-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .footer-cta h2 {
        font-size: 1.5rem;
    }

    .profile-image {
        width: 250px;
        height: 250px;
    }
