/* Frontend Portfolio Styles */

:root {
    --primary-color: #122C4F; /* Midnight Blue */
    --secondary-color: #1e4976; /* Lighter Midnight Blue */
    --accent-color: #3D8084; /* Teal accent */
    --dark-color: #0a1929;
    --blob-color: #1e4976;
    --gradient-start: #122C4F;
    --gradient-end: #2d5a8f;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-content {
    min-height: 80vh;
}

/* Footer Styling */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    margin-top: 0 !important;
}

footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

footer .social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.1);
    color: #3D8084 !important;
}

footer p {
    opacity: 0.95;
    font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 50%, #3D8084 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(61, 128, 132, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Navbar */
.navbar-dark .navbar-nav .nav-link {
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #3D8084 !important;
    transform: translateY(-2px);
}

/* Cards */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Social Links */
.social-links a {
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: scale(1.2);
}

/* Progress bars */
.progress {
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(18, 44, 79, 0.4);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

/* Profile Image with Blob Background */
.profile-blob-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.profile-blob-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--blob-color);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob-morph 8s ease-in-out infinite;
    z-index: 0;
}

.profile-blob-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes blob-morph {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

/* Alternative: Circle with Blob Background */
.profile-circle-blob {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

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

.profile-circle-blob .blob-bg {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary-color), #3D8084, #06b6d4);
    background-size: 200% 200%;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: blob-morph 8s ease-in-out infinite, gradient-shift 6s ease infinite;
    z-index: 0;
    opacity: 0.7;
}

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

.profile-circle-blob img {
    position: relative;
    z-index: 1;
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid white;
    box-shadow: 0 25px 70px rgba(18, 44, 79, 0.3),
                0 10px 40px rgba(0, 0, 0, 0.2),
                inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.profile-circle-blob:hover img {
    box-shadow: 0 30px 90px rgba(18, 44, 79, 0.4),
                0 15px 50px rgba(0, 0, 0, 0.3),
                inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(61, 128, 132, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section h2 {
    font-weight: 700;
    font-size: 2.5rem;
}

.cta-section p.lead {
    font-size: 1.25rem;
    opacity: 0.95;
}

.cta-section .btn-light {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 14px 40px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.cta-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

/* Progress Bar Colors */
.progress-bar.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Text Colors */
.text-primary {
    color: var(--primary-color) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh !important;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .profile-blob-container {
        max-width: 300px;
    }
    
    .profile-circle-blob {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }
    
    .profile-circle-blob .blob-bg {
        width: 310px;
        height: 310px;
        top: -20px;
        right: -20px;
    }
    
    .profile-circle-blob img {
        width: 280px;
        height: 280px;
    }
    
    /* Footer responsive */
    footer {
        padding: 1.5rem 0 !important;
    }
    
    footer .social-links a {
        width: 35px;
        height: 35px;
    }
    
    footer p {
        font-size: 0.85rem;
    }
}

