/* ============================================
Poppins Fonts
============================================== */
@import url('https://fonts.googleapis.com/css2?family=Anek+Gujarati:wght@100..800&family=Carme&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Serif+Gujarati:wght@100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Oswald:wght@200..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Raleway:ital,wght@0,100..900;1,100..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');



/* ============================================
Basics Styling
============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #ffffff;
    --dark: #000000;
    --navy-blue: #1b2633;
    --accent-color: #3f4e64;
    --light-bg: #f8f9fa;
    --text-muted: #6c757d;
    --transition: all 0.3s ease;
    --font-size: 0.9rem;
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.125);
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.serif-font {
    font-family: 'Poppoms', sans-serif;
}

.bg-navy {
    background-color: var(--navy-blue);
}

.text-navy {
    color: var(--navy-blue);
}

/* ============================================
Custom Navigation 
============================================== */
.top-bar {
    background-color: var(--navy-blue);
}


/* ============================================
Navbar
============================================== */
.navbar {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-size: var(--font-size);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--navy-blue);
    text-decoration: underline;
    transition: var(--transition);
}

.nav-link.active {
    color: var(--navy-blue);
    text-decoration: underline;
}

.btn-outline-custom {
    border: 1px solid var(--navy-blue);
    background-color: var(--navy-blue);
    border-radius: 50px;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background-color: transparent;
    color: var(--navy-blue);
    border: 1px solid var(--navy-blue);
    box-shadow: var(--shadow);
    transition: var(--transition);
}


/* ============================================
 Custom Dark Button with Arrow
============================================== */
.btn-dark-custom {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 10px 10px 25px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    border: none;
    transition: all 0.3s ease;
}

.btn-dark-custom:hover {
    background-color: var(--navy-blue);
    color: white;
    transform: translateY(-2px);
}

.arrow-circle {
    background-color: var(--navy-blue);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    font-size: 12px;
}

.btn-dark-custom:hover .arrow-circle {
    background-color: white;
    color: var(--navy-blue);
}

/* ============================================
 Card Styling
============================================== */
.icons {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 60px;
    font-size: 1.5rem;
    color: var(--white);
    background-color: var(--accent-color);
    border-radius: 0.5rem;
}

.line-accent {
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.spec-card {
    border: none;
    border-left: 4px solid var(--navy-blue);
    transition: var(--transition);
}

.spec-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
    transition: var(--transition);
}


/* ===================================
cta
===================================== */
#cta .card {
    background-color: var(--navy-blue);
}

#cta .btn-dark-custom {
    background-color: var(--white);
    color: var(--accent-color);
    padding: 10px 10px 10px 25px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    border: none;
    transition: all 0.3s ease;
}

#cta .btn-dark-custom:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

#cta .arrow-circle {
    color: var(--white);
    background-color: var(--navy-blue);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    font-size: 12px;
}

#cta .btn-dark-custom:hover .arrow-circle {
    background-color: white;
    color: var(--navy-blue);
}

/*====================================
 Hero and Images 
 ===================================*/
 /* #hero{
    color: var(--white);
    background: url('../img/full_bg_img.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    width: 100%;
 } */
.hero-section img {
    /* width: 100%;
    height: 650px; */
    border-radius: 1rem;
    object-fit: cover;
    object-position: top;
    margin: auto;
    aspect-ratio: 2/2;
}

/* ============================================
About
============================================== */
#about img {
    border-radius: 1rem;
    object-fit: cover;
    margin: auto;
    /* width: 100%;
    height: 650px; */
    aspect-ratio: 4/5;
    border-bottom: 5px solid var(--white);
}



/*============================================= 
Portfolio work
============================================= */
/* --- BASE CARD STYLES --- */
.card-custom {
    position: relative;
    overflow: hidden;
    /* Critical: hides the overlay when it moves outside */
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    cursor: pointer;
    /* height: 350px; */
    aspect-ratio: 3/3;
    /* Fixed height for uniformity */
}

.card-custom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* --- BASE OVERLAY STYLES --- */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(33, 37, 41, 0.85); */
    background: rgba(63, 78, 100, 0.9);
    /* Dark overlay */
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    /* Hidden by default */
    transition: all 0.4s ease-in-out;
}

/* Overlay Content Styling */
.card-overlay h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 10px;
    transform: translateY(-20px);
    /* Start slightly higher */
    transition: transform 0.4s ease-in-out;
}

.card-overlay p {
    font-size: var(--font-size);
    color: #e0e0e0;
    transform: translateY(20px);
    /* Start slightly lower */
    transition: transform 0.4s ease-in-out;
}

.card-overlay .btn-custom {
    margin-top: 15px;
    padding: 8px 20px;
    border: 1px solid var(--white);
    color: var(--white);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transform: scale(0);
    /* Start shrunk */
    transition: transform 0.3s ease 0.1s, background 0.3s;
}

.card-overlay .btn-custom:hover {
    background: var(--white);
    color: var(--navy-blue);
}

/* --- ANIMATION VARIATION 1: Simple Fade --- */
.card-fade:hover .card-overlay {
    opacity: 1;
}

.card-fade:hover .card-overlay h3,
.card-fade:hover .card-overlay p {
    transform: translateY(0);
}

.card-fade:hover .card-overlay .btn-custom {
    transform: scale(1);
}

/* ====================================
contact
======================================= */
#contact .link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

#contact .link:hover {
    color: var(--navy-blue);
    text-decoration: underline;
    transition: var(--transition);
}

#contact .card {
    transition: var(--transition);
    background-color: var(--white);
    height: 100%;
}

.contact-icon {
    color: var(--white);
    background-color: var(--navy-blue);
    border-radius: 50px;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    margin-bottom: 0.5rem;
}

#map {
    border: 0;
    height: 450px;
    width: 100%;
    overflow: hidden;
}

/* ====================================
footer
======================================= */
footer .social {
    color: var(--white);
    background-color: var(--accent-color);
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
}

footer .social:hover {
    color: var(--navy-blue);
    background-color: var(--white);
    transition: var(--transition);
}

footer .footer-link {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

footer .footer-link:hover {
    color: var(--white);
    text-decoration: underline;
    transition: var(--transition);
}


/* =================================
backToTopBtn 
===================================*/
#backToTopBtn {
    color: var(--white);
    background-color: var(--navy-blue);
    position: fixed;
    bottom: 20px;
    right: 20px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    border: 1px solid var(--white);
    padding: 0.8rem 0.6rem;
}

/*===========================================
 Responsive Adjustments 
============================================*/
@media (max-width: 991px) {
    .hero-section {
        text-align: center;
    }

    .hero-section p.lead {
        padding-right: 0 !important;
    }

    .top-bar {
        display: none;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }

    .top-bar {
        display: none;
    }
}




/* Animation */
.animate {
    /* scale: 0; */
    opacity: 0;
    transition: 600ms ease;
}

.animate.show {
    /* scale: 1; */
    opacity: 1;
}




/* =================================
Preloader
===================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 38, 51, 0.8);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.name-container {
    color: var(--light-bg);
    font-size: clamp(2rem, 8vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    overflow: hidden;
}

.char {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    animation: charReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Space between words */
.space {
    width: 0.3em;
}

@keyframes charReveal {
    0% {
        transform: translateY(100%) skewY(10deg);
        opacity: 0;
    }

    100% {
        transform: translateY(0) skewY(0deg);
        opacity: 1;
    }
}

.loader-bar-container {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    position: absolute;
    height: 100%;
    width: 0%;
    background: var(--light-bg);
    animation: progress 2s linear forwards;
}

@keyframes progress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

#main-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
    padding-top: 80px;
}

#main-content.loaded {
    opacity: 1;
    transform: translateY(0);
}