:root {
    --primary-dark: #071739;
    --accent-red: #D90429;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--primary-dark);
    overflow-x: hidden;
}


/* Loader */

#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--primary-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}


/* Navbar */

.navbar {
    transition: var(--transition);
    padding: 20px 0;
}

.navbar.scrolled {
    background: var(--primary-dark);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-red);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}


/* Hero Section */

.hero {
    height: 100vh;
    background: linear-gradient(rgba(7, 23, 57, 0.9), rgba(7, 23, 57, 0.9)), url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&q=80') center/cover;
    display: flex;
    align-items: center;
    color: var(--white);
}

.btn-primary {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #b00321;
    transform: translateY(-3px);
}


/* Cards & Sections */

.section-padding {
    padding: 100px 0;
}

.card-custom {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-custom img {
    transition: var(--transition);
}

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


/* Timeline */

.timeline {
    border-left: 3px solid var(--accent-red);
    padding-left: 30px;
    position: relative;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-red);
    border-radius: 50%;
    left: -41.5px;
    top: 5px;
}


/* Skills Progress */

.progress {
    height: 8px;
    border-radius: 10px;
    background: #e9ecef;
}

.progress-bar {
    background-color: var(--accent-red);
    transition: width 2s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}


/* Back to top */

.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 996;
    background: var(--accent-red);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: all 0.4s;
    color: white;
    text-decoration: none;
}

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


/* Footer & Social Icons Hover */

.hover-red:hover {
    color: var(--accent-red) !important;
    padding-left: 5px;
    transition: var(--transition);
}

footer .btn-outline-light:hover {
    background-color: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
    color: var(--white) !important;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(217, 4, 41, 0.4);
}


/* Service List inside Cards */

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.service-list i {
    color: var(--accent-red);
}


/* Portfolio Filtering Styles */

.portfolio-filters {
    padding: 0;
    margin-bottom: 30px;
}

.portfolio-filters li {
    cursor: pointer;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
    border-radius: 50px;
    border: 1px solid #eee;
}

.portfolio-filters li:hover,
.portfolio-filters li.filter-active {
    background: var(--accent-red);
    color: var(--white);
    border-color: var(--accent-red);
}