/* Project card vertical image support (compact) */
.project-img-vertical {
    width: 100%;
    height: 120px;
    /* Reduced height */
    max-width: 60%;
    /* Limit width for vertical images */
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 0.5rem 0.5rem 0 0;
    display: block;
    margin: 0 auto;
}

/* Base styles */
html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

:root {
    --primary-color: #6c63ff;
    --secondary-color: #2c3e50;
    --text-color: #2d3436;
    --bg-color: #f8f9fa;
    --gradient: linear-gradient(135deg, var(--primary-color), #8c84ff);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Navbar Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
}

/* Desktop/Tablet Navigation */
.navbar-nav-desktop {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.navbar-nav-desktop .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav-desktop .nav-link:hover,
.navbar-nav-desktop .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav-desktop .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav-desktop .nav-link:hover::after,
.navbar-nav-desktop .nav-link.active::after {
    width: 100%;
}

/* Mobile Navigation */
.menu-toggler {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.menu-toggler:hover {
    color: var(--primary-color);
}

.offcanvas {
    max-width: 280px;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: none;
}

.offcanvas::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.offcanvas.show::before {
    opacity: 1;
}

.offcanvas-body {
    padding: 2rem 1rem;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.nav-item:hover,
.nav-item.active {
    background: var(--gradient);
    color: white;
    transform: translateX(-5px);
}

.nav-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1rem;
}

.nav-label {
    font-weight: 500;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--gradient);
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

@media (max-width: 768px) {
    .hero .row {
        flex-direction: column-reverse;
    }

    .hero .col-md-6:first-child {
        margin-top: 2rem;
    }
}

.hero h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero .lead {
    font-size: 1.25rem;
    font-weight: 300;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    padding: 0.8rem 2rem;
    font-weight: 500;
}

.btn-outline-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-img {
    max-width: 500px;
    margin: 0 auto;
}

.hero-img img {
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .hero-img img {
        max-width: 250px;
    }
}

@media (max-width: 992px) {
    .hero-img img {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .hero-img img {
        max-width: 180px;
    }
}

@media (max-width: 576px) {
    .hero-img img {
        max-width: 150px;
    }
}

/* Features Section */
.features {
    background-color: white;
    position: relative;
}

.feature-card {
    padding: 2rem;
    text-align: center;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: var(--bg-color);
}

.social-link {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Animations */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Sub Hero Section */
.sub-hero {
    background: var(--gradient);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

/* Tech Stack Section */
.tech-stack {
    background-color: white;
    width: 100%;
    overflow: visible;
    padding: 80px 0;
}

.tech-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.tech-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.tech-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.tech-card:hover .tech-logo {
    transform: scale(1.1);
}

.tech-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tech-card p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* About Section */
.about-content {
    padding-top: 2rem;
}

.about-content img {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: block;
}

.about-content h2 {
    color: var(--primary-color);
}

.about-content .lead {
    color: var(--secondary-color);
}

/* Contact Page */
.contact-content {
    min-height: 50vh;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.social-icon {
    width: 80px;
    height: 80px;
    transition: all 0.3s ease;
}

.social-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: #1b1a1a !important;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.social-icon.bi {
    font-size: 64px;
    line-height: 1;
}

.social-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover .social-icon {
    transform: translateY(-5px);
}

.social-link:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
        padding-top: 6rem;
    }

    .hero-img {
        margin-top: 3rem;
        max-width: 80%;
    }

    .feature-card {
        margin-bottom: 2rem;
    }

    .sub-hero {
        padding: 100px 0 40px;
    }

    .about-content {
        text-align: center;
    }

    .tech-card {
        margin-bottom: 2rem;
    }

    h1, h2, h3, h4, h5, h6 {
  padding: 1rem 0;
  }
}