* {
    scroll-behavior: smooth;
}

/* Smooth transitions for all elements */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.skill-rating {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(107, 114, 128, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.skill-item:hover .skill-rating {
    opacity: 1;
    top: -50px;
}

.star {
    color: #6b7280;
    animation: sparkle 0.5s ease-in-out;
}

@keyframes sparkle {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
    100% { transform: scale(1) rotate(360deg); opacity: 1; }
}

.slide-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.slide {
    display: none;
    animation: slideIn 0.5s ease-in-out;
}

.slide.active {
    display: block;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

.project-thumbnail {
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-thumbnail:hover {
    transform: scale(1.05);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
    background: #1f2937;
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.close:hover {
    color: #d1d5db;
}

.navbar-fixed {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

/* Hero Background - Dark Theme Only */
.hero-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"><animate attributeName="opacity" values="0;1;0" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.15)"><animate attributeName="opacity" values="0;1;0" dur="4s" repeatCount="indefinite" begin="1s"/></circle><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.2)"><animate attributeName="opacity" values="0;1;0" dur="2s" repeatCount="indefinite" begin="2s"/></circle></svg>');
}

/* Contact Form Background - Dark Theme Only */
.contact-form {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 75%, #475569 100%);
}

.typing-animation {
    font-weight: 600;
    color: #ffffff;
    min-height: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.typing-text {
    position: absolute;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s ease-in-out;
    text-align: center;
    width: 100%;
}

.typing-text.active {
    opacity: 1;
    transform: translateY(0);
}

.profile-image {
    width: 220px;
    height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 5px solid #e5e7eb;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.skill-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Specific hover effects for each skill - Gray Theme */
.skill-item[data-skill="html"]:hover .skill-card {
    border-color: #6b7280;
    box-shadow: 0 10px 25px rgba(107, 114, 128, 0.3);
}

.skill-item[data-skill="css"]:hover .skill-card {
    border-color: #9ca3af;
    box-shadow: 0 10px 25px rgba(156, 163, 175, 0.3);
}

.skill-item[data-skill="php"]:hover .skill-card {
    border-color: #4b5563;
    box-shadow: 0 10px 25px rgba(75, 85, 99, 0.3);
}

.skill-item[data-skill="javascript"]:hover .skill-card {
    border-color: #374151;
    box-shadow: 0 10px 25px rgba(55, 65, 81, 0.3);
}

.skill-item[data-skill="mysql"]:hover .skill-card {
    border-color: #6b7280;
    box-shadow: 0 10px 25px rgba(107, 114, 128, 0.3);
}

.skill-item[data-skill="illustrator"]:hover .skill-card {
    border-color: #9ca3af;
    box-shadow: 0 10px 25px rgba(156, 163, 175, 0.3);
}

.skill-item[data-skill="photoshop"]:hover .skill-card {
    border-color: #4b5563;
    box-shadow: 0 10px 25px rgba(75, 85, 99, 0.3);
}

.skill-item[data-skill="office"]:hover .skill-card {
    border-color: #374151;
    box-shadow: 0 10px 25px rgba(55, 65, 81, 0.3);
}

.section-title {
    background: linear-gradient(135deg, #9ca3af, #d1d5db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    background: linear-gradient(135deg, #374151, #6b7280);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1f2937, #374151);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(107, 114, 128, 0.4);
}

.project-card {
    border: 1px solid rgba(75, 85, 99, 0.3);
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: #9ca3af;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.social-link {
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #f3f4f6 !important;
    transform: translateY(-3px) scale(1.1);
}

/* Navigation hover effects */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #d1d5db !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #9ca3af;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #374151;
}

::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Focus styles for better accessibility */
input:focus,
textarea:focus,
button:focus {
    ring-color: #9ca3af;
}

/* Animation for smooth transitions */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    animation: fadeIn 0.3s ease-in-out;
}

/* Accent colors for different sections */
.accent-gray-400 { color: #9ca3af; }
.accent-gray-500 { color: #6b7280; }
.accent-gray-600 { color: #4b5563; }

/* Gradient text for headers */
.gradient-text {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb, #d1d5db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Button animations */
.btn-animate {
    position: relative;
    overflow: hidden;
}

.btn-animate::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;
}

.btn-animate:hover::before {
    left: 100%;
}

/* Skill progress bars */
.skill-progress {
    height: 4px;
    background: #374151;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.skill-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6b7280, #9ca3af);
    border-radius: 2px;
    transition: width 1s ease-in-out;
    transform-origin: left;
}

/* Loading animation */
@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.shimmer {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 400% 100%;
    animation: shimmer 1.5s infinite;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .mobile-center {
        text-align: center;
    }
    
    .mobile-full {
        width: 100%;
    }
    
    .mobile-hide {
        display: none;
    }
}