/* 
 * Custom Styles for Pravat Mohapatra Website
 * Theme: Modern Light & Bright Aesthetic
 */

:root {
    --primary: #0096a9;
    /* Teal from logo */
    --primary-deep: #004e56;
    /* User requested deep teal */
    --primary-dark: #004b56;
    /* Dark Teal */
    --secondary: #8b5cf6;
    /* Vibrant Purple to match Teal */
    --accent: #ec4899;
    /* Vibrant Pink for accents */

    --light-bg: #f8fafc;
    --surface: #ffffff;
    --surface-light: #f1f5f9;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --font-heading: fangsong, serif;
    --font-body: fangsong, serif;
}

.bg-deep {
    background-color: var(--primary-deep) !important;
}


html,
body {
    background-color: var(--light-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    width: 100%;
    max-width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

.text-primary {
    --bs-text-opacity: 1;
    color: rgb(0 150 169) !important;
}

p {
    font-size: 17px !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

h1:hover, h2:hover {
    transform: translateY(-2px);
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-main {
    color: var(--text-main) !important;
}

.pt-115 {
    margin-top: 83px;
}

/* Custom Background Utilities */
.bg-clean {
    background-color: #ffffff;
}

.bg-soft-primary {
    background-color: #e0f7fa;
}

.bg-soft-secondary {
    background-color: #e0f2f1;
}

.bg-mesh {
    background-color: #f8fafc;
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 150, 169, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(0, 150, 169, 0.1) 0px, transparent 50%);
}

.bg-dots {
    background-color: #ffffff;
    background-image: radial-gradient(#e2e8f0 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

.bg-waves {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 1600 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f1f5f9' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M1600 0H0v800h1600V0zm-40 0H40v760h1520V0zm-40 40H80v680h1440V40zm-40 40H120v600h1360V80zm-40 40H160v520h1280v-520zm-40 40H200v440h1200v-440zm-40 40H240v360h1120v-360z'/%3E%3C/g%3E%3C/svg%3E");
}

.text-gradient {
    background: linear-gradient(135deg, #8ddff2, #0096a9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.animated-title {
    animation: headingReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0; /* Keep hidden until animation starts */
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
}

.bg-gradient-accent {
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
}

/* Buttons */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 150, 169, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 150, 169, 0.4);
    color: white;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: #ffffff;
    border-color: rgba(0, 150, 169, 0.3);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

/* Glassmorphism Navigation */
/* Top Header */
.top-header {
    height: 43px;
    z-index: 1032;
    position: relative;
    background-color: var(--primary-deep) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


.top-header a i {
    font-size: 0.9rem;
}

/* Navigation Styles */
.glass-nav {
    background: transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    top: 43px;
    /* Adjust for Top Header */
}

.glass-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: -1;
}

.glass-nav.scrolled {
    padding: 0.5rem 0;
    top: 0;
}

.glass-nav.scrolled::before {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991.98px) {
    .glass-nav {
        top: 0;
    }
}

.glass-nav .nav-link {
    font-weight: 500;
    color: var(--text-muted) !important;
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s ease;
	font-size: 18px;
}

.glass-nav .nav-link:hover,
.glass-nav .nav-link.active {
    color: var(--primary) !important;
}

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

.glass-nav .nav-link:hover::after,
.glass-nav .nav-link.active::after {
    width: 80%;
}

.glass-dropdown {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.glass-dropdown .dropdown-item {
    color: var(--text-main);
    transition: all 0.2s ease;
}

.glass-dropdown .dropdown-item:hover {
    background: var(--bg-soft-primary);
    color: var(--primary);
}

/* Offcanvas Mobile Styles - Improved Visibility */
.glass-offcanvas {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    width: 285px !important;
    z-index: 1060 !important;
}

@media (max-width: 991.98px) {
    .glass-offcanvas .offcanvas-header {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 1.5rem;
    }

    .glass-offcanvas .offcanvas-body {
        padding: 1.5rem;
    }

    .glass-offcanvas .nav-link {
        font-size: 1.1rem;
        padding: 0.8rem 1.2rem !important;
        margin: 0.2rem 0 !important;
        border-radius: 0.5rem;
        color: var(--text-main) !important;
        text-align: left;
        transition: all 0.2s ease;
    }

    .glass-offcanvas .nav-link:hover,
    .glass-offcanvas .nav-link.active {
        background: rgba(0, 150, 169, 0.08);
        color: var(--primary) !important;
        padding-left: 1.5rem !important;
    }

    .glass-offcanvas .nav-link::after {
        display: none !important;
    }
}

.btn-close:focus {
    box-shadow: none;
}

/* Mobile Footer Fixes */
@media (max-width: 991px) {
    .footer-links {
        padding-left: 0;
        text-align: center;
    }

    .footer-social {
        justify-content: center !important;
    }
}


/* Sections */
.section-padding {
    padding: 35px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 20px 0;
    }
}

.section-header {
    margin-bottom: 30px;
    position: relative;
}

.subtitle {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: rgba(0, 150, 169, 0.1);
    color: var(--primary) !important;
    border: 1px solid rgba(0, 150, 169, 0.25);
    border-radius: 50rem;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
    line-height: 1.5;
    max-width: 100%;
    white-space: normal;
    letter-spacing: normal;
    text-transform: none;
}

/* Modern Light Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 150, 169, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(0, 150, 169, 0.1);
    color: var(--primary);
    transition: all 0.3s ease;
}

.glass-card:hover .icon-box {
    background: var(--primary);
    color: white;
    transform: rotate(5deg) scale(1.1);
}

/* Footer elements */
/* Footer Styling */
.footer {
    background-color: var(--primary-deep) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}


.filter-white {
    filter: brightness(0) invert(1);
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.btn-social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 150, 169, 0.3);
}

.footer-bottom a {
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: #ffffff !important;
}

.footer-bottom p {
    text-align: center !important;
}

.text-info {
    color: #48e5e5 !important;
}

/* Social Brand Colors - Original Types */
.btn-social.whatsapp:hover,
.contact-social-link.whatsapp:hover {
    background: #25D366 !important;
    border-color: #25D366 !important;
    color: #fff !important;
}

.btn-social.instagram:hover,
.contact-social-link.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.btn-social.linkedin:hover,
.contact-social-link.linkedin:hover {
    background: #0077B5 !important;
    border-color: #0077B5 !important;
    color: #fff !important;
}

.btn-social.x-twitter:hover,
.contact-social-link.x-twitter:hover {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #fff !important;
}

.btn-social.youtube:hover,
.contact-social-link.youtube:hover {
    background: #FF0000 !important;
    border-color: #FF0000 !important;
    color: #fff !important;
}

.btn-social.facebook:hover,
.contact-social-link.facebook:hover {
    background: #1877F2 !important;
    border-color: #1877F2 !important;
    color: #fff !important;
}

.contact-social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.contact-social-link.whatsapp {
    color: #25D366;
}

.contact-social-link.instagram {
    color: #E4405F;
}

.contact-social-link.linkedin {
    color: #0077B5;
}

.contact-social-link.x-twitter {
    color: #000;
}

.contact-social-link.youtube {
    color: #FF0000;
}

.contact-social-link.facebook {
    color: #1877F2;
}

.contact-social-link.whatsapp:hover {
    color: #fff;
    background: #25D366;
    border-color: #25D366;
}

.contact-social-link.instagram:hover {
    color: #fff;
    background: #E4405F;
    border-color: #E4405F;
}

.contact-social-link.linkedin:hover {
    color: #fff;
    background: #0077B5;
    border-color: #0077B5;
}

.contact-social-link.x-twitter:hover {
    color: #fff;
    background: #000;
    border-color: #000;
}

.contact-social-link.youtube:hover {
    color: #fff;
    background: #FF0000;
    border-color: #FF0000;
}

.contact-social-link.facebook:hover {
    color: #fff;
    background: #1877F2;
    border-color: #1877F2;
}

.hero-pt {
    padding-top: 130px;
}

@media (max-width: 991px) {
    .hero-pt {
        padding-top: 100px;
    }
}

/* Hero Blob for Footer Background */
.hero-blob-1 {
    position: absolute;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

/* Utilities */
.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-5 {
    border-radius: 1.5rem !important;
}

.relative-z-index {
    position: relative;
    z-index: 2;
}

.hover-text-primary:hover {
    color: var(--primary) !important;
}

.transition {
    transition: all 0.3s ease;
}

/* Blog Elements */
.blog-card {
    padding: 0;
    overflow: hidden;
}

.blog-img-wrapper {
    overflow: hidden;
    height: 250px;
}

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

.glass-card:hover .blog-img-wrapper img {
    transform: scale(1.05);
}

.date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Accordion Component */
.accordion-item {
    background-color: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 1rem;
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.accordion-button {
    background-color: transparent !important;
    color: var(--text-main);
    font-weight: 600;
    font-family: var(--font-heading);
    box-shadow: none !important;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    color: var(--primary);
    background-color: rgba(0, 150, 169, 0.05) !important;
}

.accordion-body {
    background-color: transparent;
    color: var(--text-muted);
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

/* Responsive Image Heights */
.img-hero-tall {
    height: 400px;
    object-fit: cover;
    width: 100%;
}

.img-vertical-tall {
    height: 350px;
    object-fit: cover;
    width: 100%;
}

@media (min-width: 992px) {
    .img-hero-tall {
        height: 600px;
    }

    .img-vertical-tall {
        height: 500px;
    }
}

/* Gallery Styles */
.gallery-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

@media (max-width: 992px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        column-count: 1;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 150, 169, 0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 150, 169, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info h4 {
    color: white;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.gallery-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem !important;
    margin-bottom: 0;
}

.gallery-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

/* CTA Card & Contact Icons */
.cta-card {
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cta-card:hover {
    transform: translateY(-5px);
    border-color: rgba(72, 229, 229, 0.3) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.cta-icon-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.cta-icon-btn.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: white;
}

.cta-icon-btn.phone:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.cta-icon-btn.mail:hover {
    background: #ea4335;
    border-color: #ea4335;
    color: white;
}

.hover-scale-up:hover {
    transform: scale(1.05) translateY(-2px);
}

/* Subtitle letter-by-letter bounce animation */
@keyframes letterBounce {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.85);
    }
    50% {
        opacity: 0.5;
        transform: translateY(-6px) scale(1.08);
    }
    70% {
        transform: translateY(2px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.subtitle {
    display: inline-block;
    white-space: normal;
}

.subtitle-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    animation: letterBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.subtitle-space {
    display: inline-block;
    width: 0.28em;
}

/* Hover rotation micro-interaction */
.hover-rotate {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hover-rotate:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.hover-rotate i {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.group:hover .hover-rotate i {
    transform: rotate(20deg) scale(1.15);
}

/* Responsive alignment fixes for mobile view */
@media (max-width: 991.98px) {
    p {
        text-align: left !important;
    }
}