/* Custom Styles for Portfolio */

/* Modern Portfolio Enhancements */
:root {
    --primary: #007bff;
    --primary-dark: #0056b3;
    --secondary: #6c757d;
    --dark: #343a40;
    --light: #f8f9fa;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #007bff 0%, #00c6ff 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.07);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 25px rgba(0,123,255,0.2);
    --transition-sm: all 0.3s ease;
    --transition-md: all 0.5s ease;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
}

/* Main content styles */
.jumbotron {
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
body {
    font-family: 'Poppins', 'Roboto', 'Segoe UI', sans-serif;
    overflow-x: hidden;
    background-color: var(--white);
    scroll-behavior: smooth;
}

/* Header area styles */
.header-area {
    position: relative;
}

.top-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.top-header a {
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.top-header a:hover {
    color: #007bff !important;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
    color: #007bff !important;
}

/* Enhanced Navbar */
.navbar {
    transition: var(--transition-sm);
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.7rem 0;
    background-color: var(--white) !important;
    box-shadow: var(--shadow-md) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    font-weight: 700;
}

.navbar-brand span:first-child {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-brand span:last-child {
    font-weight: 600;
}

.nav-link {
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.8rem !important;
    transition: var(--transition-sm);
}

.nav-link:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.8rem;
    right: 0.8rem;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:not(.btn):hover::after,
.nav-link:not(.btn).active::after {
    transform: scaleX(1);
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link.btn {
    border-radius: 30px;
    padding: 0.5rem 1.2rem !important;
    margin-top: 0;
    margin-bottom: 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-sm);
}

.nav-link.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Footer Styles */

.footer-area {
    color: #555;
}

.footer-main {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-logo {
    text-decoration: none;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.footer-links li {
    transition: all 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007bff !important;
}

.footer-widget h5 {
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 50px;
    background-color: #007bff;
}

.social-links .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0, 123, 255, 0.1);
    color: #555;
    transition: all 0.3s ease;
}

.social-links .social-icon:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.footer-contact-info i {
    transition: transform 0.3s ease;
}

.footer-contact-info p:hover i {
    transform: scale(1.2);
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
    color: white;
}

/* Newsletter form */
.footer-widget .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.footer-widget .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    transition: all 0.3s ease;
}

.footer-widget .btn:hover {
    transform: translateX(3px);
}

/* Footer bottom links */
.footer-bottom a {
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #007bff !important;
}

/* Enhanced Hero Section */
.hero-section {
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0,123,255,0.1), rgba(0,198,255,0.1));
    z-index: -1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0,123,255,0.05), rgba(0,198,255,0.05));
    z-index: -1;
}

.hero-img {
    border: 8px solid var(--white);
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-img:hover {
    transform: scale(1.03) rotate(2deg);
    box-shadow: var(--shadow-hover);
}

.hero-section h1 {
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-section h2 {
    font-weight: 600;
    font-size: 1.5rem;
}

/* Button Styles */
.btn {
    border-radius: 30px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: var(--transition-sm);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-weight: 600;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(0,123,255,0.4);
}

.btn-primary:hover, 
.btn-primary:focus {
    background: linear-gradient(135deg, #0056b3 0%, #00a6df 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,123,255,0.5);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover, 
.btn-outline-primary:focus {
    background: var(--gradient-primary);
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
    border-color: transparent;
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-light:hover, 
.btn-outline-light:focus {
    background: var(--white);
    color: var(--primary) !important;
    transform: translateY(-3px);
}

.btn-light:hover, 
.btn-light:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

/* Cards and Sections Styling */
.card {
    border-radius: var(--border-radius-md);
    border: none;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-sm);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: 1.8rem;
}

.section-title {
    font-weight: 800;
    position: relative;
    margin-bottom: 15px;
    display: inline-block;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto 30px;
    border-radius: 2px;
}

.section-description {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Project Cards */
.project-card {
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.project-card .card-img-top {
    transition: transform 0.8s ease;
    height: 240px;
    object-fit: cover;
}

.project-card:hover .card-img-top {
    transform: scale(1.08);
}

.project-card .card-body {
    position: relative;
    z-index: 1;
}

.project-card .card-title {
    font-weight: 700;
    font-size: 1.3rem;
}

.tech-stack .badge {
    font-size: 0.75rem;
    padding: 0.5em 0.8em;
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

/* Enhanced Skills Categories */
.skill-category {
    border-radius: var(--border-radius-md);
    transition: var(--transition-sm);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    z-index: 1;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    z-index: 2;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.skill-icon {
    padding: 1rem;
    display: inline-block;
    background: rgba(0,123,255,0.1);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: var(--transition-sm);
}

.skill-category:hover .skill-icon {
    transform: scale(1.1) rotate(10deg);
    background: rgba(0,123,255,0.2);
}

.skill-category h4 {
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--dark);
}

.skill-category ul li {
    padding: 0.7rem 0;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
    font-weight: 500;
}

.skill-category ul li:last-child {
    border-bottom: none;
}

/* Services Section Enhancements */
.service-card {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-top: 50px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-top: -35px;
    margin-bottom: 10px;
}

.service-icon {
    background-color: var(--white);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2;
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
}

.service-card:hover .service-icon::before {
    opacity: 0.1;
}

.service-card .card-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-features {
    background-color: rgba(0, 123, 255, 0.05);
    padding: 1.2rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-sm);
}

.service-card:hover .service-features {
    background-color: rgba(0, 123, 255, 0.1);
}

/* Process Cards */
.process-card {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-sm);
    position: relative;
}

.process-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.process-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background-color: rgba(0,123,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.process-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--gradient-primary);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

.process-card:hover .process-icon {
    transform: rotateY(180deg);
}

/* CTA Section */
.cta-content {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-sm);
    background: var(--gradient-primary);
}

.cta-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.cta-content:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* Enhanced Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,123,255,0.5); }
    70% { box-shadow: 0 0 0 15px rgba(0,123,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,123,255,0); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animated {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Contact Section Enhancements */
.contact-card {
    border-radius: var(--border-radius-md);
    transition: var(--transition-sm);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    z-index: 2;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    height: 80px;
    width: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(0,123,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-sm);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(10deg);
    background: rgba(0,123,255,0.2);
}

/* Form Styling */
.form-control {
    border-radius: var(--border-radius-sm);
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    transition: var(--transition-sm);
    border: 1px solid rgba(0,0,0,0.1);
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(0,123,255,0.1);
    border-color: var(--primary);
}

.input-group-text {
    border-radius: var(--border-radius-sm);
    padding: 0.8rem 1.2rem;
    background-color: rgba(0,123,255,0.05);
    border: 1px solid rgba(0,0,0,0.1);
}

.input-group .form-control:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Testimonial Cards */
.testimonial-card {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-sm);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.testimonial-text {
    font-style: italic;
    line-height: 1.7;
    font-size: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .hero-section {
        padding: 80px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--white);
        padding: 1rem;
        border-radius: var(--border-radius-md);
        box-shadow: var(--shadow-md);
        margin-top: 0.5rem;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .service-card {
        margin-top: 30px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section h2 {
        font-size: 1.1rem;
    }
    
    .service-icon-wrapper {
        margin-top: -25px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .process-timeline {
        padding: 0 10px;
    }
    
    .btn-lg {
        padding: 0.6rem 1.5rem;
    }
    
    .skill-category {
        margin-bottom: 1.5rem;
    }
}

