/* Base Styles */
:root {
    --primary-color: #027BFF;
    --dark-bg: #1f2937;
    --light-bg: #f8f9fa;
    --navbar-height: 80px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
    line-height: 1.6;
    padding-top: var(--navbar-height);
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    background: var(--dark-bg);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand .logo {
    height: 50px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo {
    transform: scale(1.05);
}

.nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 10px 20px !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.navbar .btn-primary {
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.navbar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(2, 123, 255, 0.3);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
#about {
    padding: 80px 0;
}

#about img {
    max-width: 65%;
    border-radius: 8px;
    margin-left: 100px;
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
}

/* Add this to your CSS file */
@media (max-width: 767px) {
    #about .row {
        flex-direction: column-reverse;
    }
    
    #about img {
        max-width: 100%;
        margin-left: 0;
        margin-bottom: 30px;
    }
    
    #about .col-md-6 {
        text-align: center;
    }
    
    #about .about-content {
        padding: 0 15px;
    }
}

/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Icon Box */
.icon-box {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(0 0 0 / 50%)
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section .display-5 {
        font-size: 2.5rem;
    }
    
    .section-header .display-6 {
        font-size: 2rem;
    }
}

/* Button Styles */
.btn {
    font-weight: 500;
    padding: 10px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background: #0266d6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(2, 123, 255, 0.3);
}

.btn-outline-light {
    border: 1px solid #fff;
}

.btn-outline-light:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

footer {
    background: #1F2937;
}

.footer-logo {
    height: 60px;
}

footer h5 {
    font-weight: 600;
    color: #ffffff !important;
}

.footer-link {
    color: #f0efef;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #027BFF;
}

.hover-effect {
    position: relative;
}

.hover-effect:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #027BFF;
    transition: width 0.3s ease;
}

.hover-effect:hover:after {
    width: 100%;
}

.social-links .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #26303f;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: background 0.3s ease, transform 0.3s ease;
    color: #ffffff;
    text-decoration: none;
}

.social-icon:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

.text-gray-300 {
    color: #ffffff;
}

.text-gray-400 {
    color: #ffffff;
}

.bg-gray-700 {
    background-color: #374151;
}


@media (max-width: 767px) {
    .footer {
        padding: 40px 0 20px;
        text-align: center;
    }
    
    .footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-link:hover {
        transform: none;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer .col-md-2 {
        margin-bottom: 30px;
    }
}

#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #027BFF;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

#scroll-to-top:hover {
    background-color: #0268d1;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#scroll-to-top i {
    font-size: 1.2rem;
    line-height: 1;
    margin-top: -2px; /* Fine-tune if needed */
}


/* Responsive Styles */
@media (max-width: 1199px) {
    .hero-section h1 {
        font-size: 2.75rem;
    }
}

@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }
    
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    #about img {
        max-width: 60%;
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .navbar-collapse {
        background: var(--dark-bg);
        padding: 20px;
        margin-top: 10px;
        border-radius: 5px;
    }
    
    .hero-section {
        min-height: 60vh;
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    #about img {
        max-width: 80%;
    }
}

@media (max-width: 575px) {
    .hero-section {
        min-height: 50vh;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .navbar-brand .logo {
        height: 40px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}

/* Navbar mobile fixes */
.navbar-toggler {
    border: none !important;
    padding: 0.5rem;
    font-size: 1.5rem;
    color: white !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 1.5em;
    height: 1.5em;
}


@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--dark-bg);
        padding: 20px;
        margin-top: 15px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    .navbar-nav {
        padding-top: 10px;
    }
    
    .nav-item {
        margin-bottom: 10px;
    }
    
    .navbar .btn-primary {
        margin-left: 0 !important;
        margin-top: 10px;
        display: block;
        width: 100%;
    }
}

/* Responsive Portfolio Filter Buttons */
@media (max-width: 767px) {
    .filter-buttons {
        gap: 8px;
        justify-content: center;
    }
    
    .filter-buttons .btn {
        min-width: 110px;
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .filter-buttons .btn:hover,
    .filter-buttons .btn.active {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
}

@media (max-width: 575px) {
    .filter-buttons {
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }
    
    .filter-buttons .btn {
        width: 90%;
        max-width: 220px;
        margin: 3px 0;
        padding: 0.6rem 0.75rem;
    }
    
    .filter-buttons .btn.active {
        font-weight: 600;
    }
}