/* Custom Styles */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Navigation Active State */
.nav-link.active {
    color: #0891b2 !important;
    font-weight: 600;
}

/* Abstract Pattern Background */
.bg-abstract-pattern {
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(30, 58, 138, 0.1) 35px, rgba(30, 58, 138, 0.1) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(107, 70, 193, 0.1) 35px, rgba(107, 70, 193, 0.1) 70px),
        radial-gradient(circle at 25% 25%, rgba(8, 145, 178, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(107, 70, 193, 0.15) 0%, transparent 50%);
    background-size: 140px 140px, 140px 140px, 400px 400px, 400px 400px;
    animation: patternFloat 20s ease-in-out infinite;
}

@keyframes patternFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-5px, -5px) rotate(1deg); }
    50% { transform: translate(0, -10px) rotate(0deg); }
    75% { transform: translate(5px, -5px) rotate(-1deg); }
}

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

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

/* Slow spin animation for abstract shapes */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Custom Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #1e3a8a, #6b46c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Skill Progress Bars */
.skill-bar {
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a, #6b46c1);
    border-radius: 2px;
    transition: width 1s ease-in-out;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1e3a8a, #6b46c1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1e40af, #7c3aed);
}

/* Hover Effects */
.hover-lift:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(30, 58, 138, 0.3);
    transition: box-shadow 0.3s ease;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #1e3a8a, #6b46c1);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
    background: white;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #1e3a8a;
    color: white;
    transform: translateY(-2px);
}

/* Particle Background Effect */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(30, 58, 138, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

/* Custom Card Styles */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Tech Icon Styles */
.tech-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1e3a8a, #6b46c1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

/* Progress Circles */
.progress-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #1e3a8a, #6b46c1, #1e3a8a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-circle::before {
    content: '';
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
}

/* Typing Animation */
.typing {
    border-right: 3px solid #1e3a8a;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        border-color: #1e3a8a;
    }
    51%, 100% {
        border-color: transparent;
    }
}

/* Section Dividers */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #1e3a8a, transparent);
    margin: 40px 0;
}

/* Custom Focus States */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.3);
    border-radius: 8px;
}

/* Responsive Grid Adjustments */
@media (max-width: 640px) {
    .grid-responsive {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .grid-responsive {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .grid-responsive {
        grid-template-columns: repeat(3, 1fr);
    }
}
