/* Global Styles */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --transition: all 0.3s ease;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    padding-top: 76px;
    background-color: #fafafa;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    z-index: -1;
}

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

.btn-primary {
    background: var(--gradient);
    border: none;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    background: var(--gradient);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

.btn-outline-light {
    border: 2px solid #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--primary-color);
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 2.5rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    width: 50px;
    height: 3px;
    background: var(--gradient);
    transform: translateX(-50%);
}

/* Navbar */
.navbar {
    background-color: rgba(33, 37, 41, 0.9);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 0; /* remove internal vertical padding so logo can fill the area */
    height: 76px; /* header height that logo should cover */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center; /* center navbar content vertically */
}

.navbar-scrolled {
    background-color: rgba(33, 37, 41, 0.98);
    height: 76px;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%; /* allow brand to fill navbar height */
    padding: 0 18px; /* horizontal spacing */
}

.navbar-logo {
    height: auto;
    max-height: 64px; /* keep logo within header height to avoid overlap */
    width: auto;
    max-width: 220px;
    object-fit: contain; /* maintain aspect ratio and avoid cropping */
    transition: var(--transition);
}

/* Optional: if you want the logo to fully cover the header background area (edge-to-edge),
   you can set the brand to occupy the full width and hide brand text; currently this keeps
   the brand text visible while the logo fills the header height. */

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

.brand-text {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    padding: 10px 15px;
    transition: var(--transition);
    position: relative;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 30px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
}

/* Hero Section */
.hero-section {
    background: var(--gradient);
    color: #fff;
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255, 255, 255, 0.1)" fill-opacity="1" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-image {
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulse 3s infinite;
}

.hero-image img {
    max-width: 300px;
    border: 8px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    animation: float 5s ease-in-out infinite;
}

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

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
}

.hero-buttons .btn {
    margin-right: 15px;
    margin-bottom: 15px;
    min-width: 150px;
}

/* Skills Section */
.skills-section {
    padding: 120px 0;
    background-color: #fff;
    position: relative;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: #fff;
    clip-path: polygon(0 0, 100% 100%, 100% 100%, 0% 100%);
}

.skill-item {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.progress {
    height: 10px;
    border-radius: 30px;
    background-color: #e9ecef;
    overflow: visible;
    margin-top: 10px;
}

.progress-bar {
    background: var(--gradient);
    border-radius: 30px;
    position: relative;
    transition: width 1.5s ease;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 2px solid #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Projects Section */
.featured-projects {
    padding: 120px 0;
    background-color: #f8f9fa;
    position: relative;
}

.project-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 30px;
    background-color: #fff;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(67, 97, 238, 0.8), rgba(58, 12, 163, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s ease;
}

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

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

.project-card .card-body {
    padding: 25px;
}

.project-card .card-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.technologies .badge {
    font-weight: 500;
    padding: 6px 12px;
    margin-right: 5px;
    margin-bottom: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border: none;
}

/* CTA Section */
.cta-section {
    background: var(--gradient);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255, 255, 255, 0.1)" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,213.3C1248,235,1344,213,1392,202.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* About Page */
.about-header, .projects-header, .contact-header {
    background: var(--gradient);
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.about-header::before, .projects-header::before, .contact-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255, 255, 255, 0.1)" fill-opacity="1" d="M0,160L48,170.7C96,181,192,203,288,202.7C384,203,480,181,576,154.7C672,128,768,96,864,101.3C960,107,1056,149,1152,154.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
}

.about-header .container, .projects-header .container, .contact-header .container {
    position: relative;
    z-index: 1;
}

.about-content {
    padding: 100px 0;
}

.about-image {
    position: relative;
    padding: 30px;
    border-radius: 20px;
    background-color: #fff;
    box-shadow: var(--box-shadow);
}

.about-image img {
    max-width: 200px;
    border: 8px solid rgba(67, 97, 238, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-size: 18px;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--gradient);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-content {
    padding: 25px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.timeline-content h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.timeline-content h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.period {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

/* Projects Page */
.projects-content {
    padding: 100px 0;
}

.projects-filter {
    margin-bottom: 40px;
}

.filter-btn {
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 8px 20px;
    border-radius: 30px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    background-color: transparent;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* Contact Page */
.contact-content {
    padding: 100px 0;
}

.contact-info {
    padding: 30px;
    border-radius: 20px;
    background-color: #fff;
    box-shadow: var(--box-shadow);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.contact-form {
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.contact-form .card-body {
    padding: 40px;
}

.form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    transition: var(--transition);
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Footer */
.footer {
    background-color: #212529;
    color: #fff;
    padding: 30px 0;
}

.footer .social-icon {
    width: 35px;
    height: 35px;
    font-size: 16px;
    margin: 0 5px;
}

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

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeInUp {
    animation-name: fadeInUp;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.4);
}



/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

.back-to-top:hover {
    transform: translateY(-5px);
    color: #fff;
}

/* Footer Styles - Modern & Innovative */
.footer {
    background-color: #212529;
    color: #fff;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
    margin-top: 100px;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(58, 12, 163, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Footer Top Section */
.footer-top {
    position: relative;
    z-index: 2;
}

/* Footer Card Styling */
.footer-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
}

.footer-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(67, 97, 238, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.15);
}

.footer-brand {
    margin-bottom: 25px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo-img {
    max-height: 60px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.footer-card:hover .footer-logo-img {
    transform: scale(1.05);
}

.footer-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-subtitle {
    font-size: 0.95rem;
    opacity: 0.7;
    line-height: 1.6;
    margin: 0;
}

.footer-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-card-title i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Modern Social Links */
.social-links-modern {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.social-icon-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.2) 0%, rgba(58, 12, 163, 0.2) 100%);
    border: 2px solid rgba(67, 97, 238, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.social-icon-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-icon-modern:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
}

.social-icon-modern:hover::before {
    opacity: 1;
}

.social-icon-modern:hover i {
    position: relative;
    z-index: 2;
    animation: social-bounce 0.6s ease;
}

@keyframes social-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Footer Links Modern */
.footer-links-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-modern li {
    margin-bottom: 14px;
}

.footer-links-modern a {
    color: inherit;
    opacity: 0.7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.footer-links-modern a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 8px;
}

.footer-links-modern i {
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.footer-links-modern a:hover i {
    transform: translateX(4px);
}

/* Contact Info Modern */
.contact-info-modern {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding-bottom: 15px;
    transition: all 0.3s ease;
}

.contact-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    min-width: 24px;
    text-align: center;
    margin-top: 4px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 0.85rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-item a,
.contact-item span {
    color: inherit;
    font-size: 1rem;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.contact-item:hover a,
.contact-item:hover span {
    opacity: 1;
    color: var(--primary-color);
}

/* Footer Divider */
.footer-divider {
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(67, 97, 238, 0.3) 25%, 
        rgba(67, 97, 238, 0.3) 75%, 
        transparent 100%
    );
    margin: 50px 0;
    position: relative;
    z-index: 2;
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    z-index: 2;
}

.footer-copyright {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.7;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.copyright-separator {
    opacity: 0.4;
}

.footer-credit {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.7;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.footer-credit i.heart-beat {
    color: #ff5e5e;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Animated Background Elements */
.footer-bg-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.footer-element {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color), transparent);
    opacity: 0.03;
    animation: float 20s infinite ease-in-out;
}

.element-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    animation-delay: 3s;
}

.element-3 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    animation-delay: 6s;
}



hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* CTA Section */
.cta-section {
    background: var(--gradient);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255, 255, 255, 0.1)" fill-opacity="1" d="M0,160L48,170.7C96,181,192,203,288,202.7C384,203,480,181,576,154.7C672,128,768,96,864,101.3C960,107,1056,149,1152,154.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -20px); }
    50% { transform: translate(-10px, 20px); }
    75% { transform: translate(-30px, -10px); }
}

@media (max-width: 991.98px) {

    /* Navbar */
    .navbar {
        padding: 10px 0;
    }

    .navbar-collapse {
        background-color: rgba(33, 37, 41, 0.95);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
    }

    .navbar-nav .nav-link {
        padding: 10px 0;
    }

    /* Hero Section */
    .hero-section {
        padding: 140px 0 90px;
    }

    .hero-content {
        text-align: center;
        padding: 0 15px;
    }

    .hero-section h1 {
        font-size: 2.6rem;
    }

    .hero-image {
        margin-top: 40px;
    }

    /* Section Titles */
    .section-title h2 {
        font-size: 2.2rem;
    }
    .container{
        justify-content: center;
        flex-wrap: nowrap
    }    
}

@media (max-width: 767.98px) {

    body {
        padding-top: 0;
    }

    /* Hero Section */
    .hero-section {
        padding: 120px 0 80px;
    }

    .hero-section .container {
        flex-direction: row;
        align-items: center;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: 15px;
        line-height: 1.5;
    }

    .hero-image {
        margin-top: 30px;
    }

    /* Section spacing */
    .skills-section,
    .featured-projects,
    .about-content,
    .projects-content,
    .contact-content {
        padding: 80px 0;
    }

    /* Timeline */
    .timeline {
        padding-left: 20px;
    }

    .timeline-item::before {
        left: -28px;
    }

    /* Footer */
    .footer {
        padding: 60px 0 20px;
        margin-top: 60px;
    }

    .footer-card {
        padding: 20px;
    }

    .footer-title {
        font-size: 1.5rem;
    }

    .footer-credit {
        justify-content: flex-start;
        margin-top: 15px;
    }

    .footer-divider {
        margin: 30px 0;
    }

    /* Back to top */
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        right: 20px;
        bottom: 20px;
    }

    /* Navbar logo */
    .navbar-logo {
        max-height: 46px;
        max-width: 160px;
    }
    .container{
        justify-content: center;
        flex-wrap: nowrap
    }
}

@media (max-width: 575.98px) {

    /* Hero text */
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section h2 {
        font-size: 1.4rem;
    }

    /* Buttons */
    .btn-lg {
        padding: 8px 20px;
        font-size: 1rem;
    }

    /* Contact form */
    .contact-form .card-body {
        padding: 25px;
    }

    /* Footer small */
    .site-footer.small-footer {
        font-size: 12px;
        padding: 10px 0;
    }
    .container{
        justify-content: center;
        flex-wrap: nowrap
    }
}

@media (max-width: 480px) {

    .navbar-logo {
        max-height: 38px;
        max-width: 120px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: row;
        gap: 12px;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
    }
    .container{
        justify-content: center;
        flex-wrap: nowrap
    }
}

/* Compact footer override: small single-line footer */
.site-footer.small-footer {
    padding: 6px 0;
    margin-top: 40px;
    background-color: rgba(33, 37, 41, 0.9) !important;
    color: var(--light-color) !important;
    border-top: none;
    font-size: 13px;
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}

.site-footer.small-footer .container {
    max-width: 1100px;
}

.site-footer.small-footer p {
    margin: 0;
    padding: 0;
    opacity: 0.85;
}


