/* Base Styles */
body {
    background-color: #020617;
    color: #e2e8f0;
    overflow-x: hidden;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient 3s linear infinite;
}

/* Glass Card Effect */
.glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Grid Pattern Background */
.grid-pattern {
    background-image: radial-gradient(rgba(6, 182, 212, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Navigation Link Underline Effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, #06b6d4, #8b5cf6);
    transition: width 0.3s ease;
}

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

/* Typing Cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Skill Bar Animation */
.skill-bar {
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Project Card Hover Effects */
.project-card {
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

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

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

.project-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-icon {
    transition: transform 0.5s ease;
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #06b6d4, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0891b2, #7c3aed);
}

/* Selection Color */
::selection {
    background: rgba(6, 182, 212, 0.3);
    color: white;
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Profile Image Styles */
.profile-image-container {
    position: relative;
}

.profile-image-container img {
    transition: transform 0.3s ease;
}

.profile-image-container:hover img {
    transform: scale(1.05);
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Form Input Styles */
input, textarea {
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* Button Hover Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
}

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

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

/* Responsive Typography */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Print Styles */
@media print {
    .glass-card {
        background: white;
        border: 1px solid #ccc;
    }
    
    body {
        background: white;
        color: black;
    }
}
