/* Custom styles for the portfolio */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    color: white;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

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

.card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

/* Paper float animation for project cards */
.project-card {
    animation: paperFloat 3s ease-in-out infinite;
    transform-origin: center center;
}

.project-card:hover {
    animation-play-state: paused;
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

@keyframes paperFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(0.5deg); }
    50% { transform: translateY(0) rotate(-0.5deg); }
    75% { transform: translateY(-5px) rotate(0.25deg); }
}

.card-header.bg-gradient {
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    border: none;
}

.card-header.bg-gradient h5 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    font-weight: 600;
}

.card-header.bg-gradient .text-white {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Specific gradient colors for different sections */
.card-header.contact-info {
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
}

.card-header.expertise {
    background: linear-gradient(45deg, #23a6d5, #23d5ab) !important;
}

.card-header.quick-message {
    background: linear-gradient(45deg, #e73c7e, #ee7752) !important;
}

.card-header.projects {
    background: linear-gradient(45deg, #f093fb, #f5576c) !important;
}

.card-header.experience {
    background: linear-gradient(45deg, #4facfe, #00f2fe) !important;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.navbar {
    background: rgba(33, 37, 41, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: all 0.3s ease;
}

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

.badge {
    font-size: 0.8em;
    padding: 0.5em 0.8em;
    border-radius: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn {
    border-radius: 25px;
    padding: 0.7rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::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;
}

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

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

footer {
    background: rgba(33, 37, 41, 0.95) !important;
    backdrop-filter: blur(10px);
    margin-top: auto;
}

main {
    flex: 1;
    animation: slideInLeft 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

.floating {
    /* Animation removed to eliminate blinking cursor effect */
}

.text-gradient {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-image {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 6px solid;
    border-color: #ee7752;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(238, 119, 82, 0.8);
    object-fit: cover;
    z-index: 10;
    filter: contrast(1.1) saturate(1.2);
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.header-profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ee7752;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.header-profile-image:hover {
    transform: scale(1.1);
}

@keyframes profile-pulse {
    0% { transform: scale(1); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(102, 126, 234, 0.7); }
    100% { transform: scale(1.05); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(102, 126, 234, 0.9); }
}

.animated-name {
    color: #ffffff;
    font-weight: 700;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glow {
    0% { text-shadow: 0 0 10px rgba(102,126,234,0.3), 0 0 20px rgba(102,126,234,0.3); }
    100% { text-shadow: 0 0 20px rgba(102,126,234,0.7), 0 0 30px rgba(102,126,234,0.7), 0 0 40px rgba(102,126,234,0.7); }
}

/* Tablet Portrait */
@media (max-width: 1024px) {
    .hero-section {
        padding: 2.5rem 1.5rem !important;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
        top: 15px;
        left: 15px;
    }
    
    .hero-section h1 {
        font-size: 2.2rem !important;
        margin-top: 80px;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem !important;
    }
    
    .profile-image {
        width: 80px;
        height: 80px;
        top: 10px;
        left: 10px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem !important;
        margin-top: 60px;
    }
    
    .hero-section h2 {
        font-size: 1.3rem !important;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    .hero-section {
        padding: 1.5rem 0.5rem !important;
    }
    
    .profile-image {
        width: 60px;
        height: 60px;
        top: 5px;
        left: 5px;
    }
    
    .hero-section h1 {
        font-size: 1.5rem !important;
        margin-top: 50px;
    }
    
    .hero-section h2 {
        font-size: 1.1rem !important;
    }
    
    .btn-lg {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin: 0.2rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .card-body {
        padding: 1rem 0.75rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-section {
        padding: 1rem 0.25rem !important;
    }
    
    .hero-section h1 {
        font-size: 1.3rem !important;
    }
    
    .hero-section h2 {
        font-size: 1rem !important;
    }
    
    .card {
        margin-bottom: 0.75rem;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        padding: 1rem !important;
        min-height: auto;
    }
    
    .profile-image {
        width: 50px;
        height: 50px;
    }
    
    .hero-section h1 {
        font-size: 1.4rem !important;
        margin-top: 40px;
    }
    
    .hero-section h2 {
        font-size: 1rem !important;
    }
    
    .container {
        max-width: 100%;
    }
}