/* ===================================
   Moriana Innovations Custom Styles
   Brand Colors: 
   - Primary Red: #F20505 (use sparingly)
   - Red Dark 1: #BF0404
   - Red Dark 2: #8C0303
   - Gray: #BFBFBF
   - Black: #0D0D0D
   =================================== */

:root {
    --moriana-red: #F20505;
    --moriana-red-dark: #BF0404;
    --moriana-red-darker: #8C0303;
    --moriana-gray: #BFBFBF;
    --moriana-black: #0D0D0D;
    --section-padding: 100px;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Remove default blue focus outlines and override Bootstrap defaults */
a:focus,
button:focus,
.btn:focus,
.btn:active,
.btn.active,
.btn:active:focus,
.btn.active:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Custom focus states using brand red */
a:focus-visible {
    outline: 2px solid rgba(242, 5, 5, 0.5);
    outline-offset: 2px;
}

button:focus-visible,
.btn:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(242, 5, 5, 0.25) !important;
}

/* Override all Bootstrap button focus/active states */
.btn:not(:disabled):not(.disabled):active:focus,
.btn:not(:disabled):not(.disabled).active:focus {
    box-shadow: 0 0 0 0.25rem rgba(242, 5, 5, 0.25) !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--moriana-black);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.75rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.text-red {
    color: var(--moriana-red);
}

.bg-red {
    background-color: var(--moriana-red);
}

.bg-black {
    background-color: var(--moriana-black);
}

.bg-gray-light {
    background-color: #f8f9fa;
}

/* Growth Strategy Cards */
#growth .bg-gray-light {
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

#growth .bg-gray-light:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: white;
    border-color: #e9ecef;
}

#growth .bg-gray-light i {
    transition: all 0.5s ease;
}

#growth .bg-gray-light:hover i {
    transform: scale(1.2);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    max-width: 250px;
    transition: height 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    color: var(--moriana-black);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--moriana-red);
}

.navbar-nav .nav-link:focus {
    color: var(--moriana-red);
    outline: none;
    box-shadow: none;
}

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

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('../assets/images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--moriana-black);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.75) 0%, rgba(42, 42, 42, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-content .tagline {
    font-size: 1.75rem;
    color: var(--moriana-gray);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s;
}

.hero-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--moriana-red) 0%, transparent 100%);
    margin: 1.5rem 0;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    font-style: italic;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.45s, transform 0.8s ease 0.45s;
}

.hero-content .lead {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}

/* Hero buttons animation */
.hero-content .mt-4 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.75s, transform 0.8s ease 0.75s;
}

/* Hero content visible state */
.hero-content.animate h1,
.hero-content.animate .tagline,
.hero-content.animate .hero-divider,
.hero-content.animate .hero-subtitle,
.hero-content.animate .lead,
.hero-content.animate .mt-4 {
    opacity: 1;
    transform: translateY(0);
}

.hero-content.animate .hero-divider {
    transform: scaleX(1);
}

.btn-primary {
    background-color: var(--moriana-red);
    border-color: var(--moriana-red);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(242, 5, 5, 0.3);
}

.btn-primary:hover {
    background-color: var(--moriana-red-dark);
    border-color: var(--moriana-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 5, 5, 0.4);
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus-visible,
.btn-primary.focus {
    background-color: var(--moriana-red-dark) !important;
    border-color: var(--moriana-red-dark) !important;
    box-shadow: 0 0 0 0.25rem rgba(242, 5, 5, 0.25) !important;
    outline: none !important;
}

.btn-check:focus + .btn-primary,
.btn-primary:focus {
    background-color: var(--moriana-red-dark) !important;
    border-color: var(--moriana-red-dark) !important;
    box-shadow: 0 0 0 0.25rem rgba(242, 5, 5, 0.25) !important;
}

/* Override Bootstrap active/show states for primary button */
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    background-color: var(--moriana-red-dark) !important;
    border-color: var(--moriana-red-dark) !important;
    box-shadow: 0 0 0 0.25rem rgba(242, 5, 5, 0.25) !important;
}

.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus {
    background-color: var(--moriana-red-dark) !important;
    border-color: var(--moriana-red-dark) !important;
    box-shadow: 0 0 0 0.25rem rgba(242, 5, 5, 0.25) !important;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--moriana-black);
    transform: translateY(-2px);
}

.btn-outline-light:focus,
.btn-outline-light:active,
.btn-outline-light:focus-visible,
.btn-outline-light.focus {
    background-color: white !important;
    color: var(--moriana-black) !important;
    border-color: white !important;
    box-shadow: 0 0 0 0.25rem rgba(242, 5, 5, 0.25) !important;
    outline: none !important;
}

.btn-check:focus + .btn-outline-light,
.btn-outline-light:focus {
    background-color: white !important;
    color: var(--moriana-black) !important;
    border-color: white !important;
    box-shadow: 0 0 0 0.25rem rgba(242, 5, 5, 0.25) !important;
}

/* Override Bootstrap active/show states for outline-light button */
.btn-outline-light:not(:disabled):not(.disabled):active,
.btn-outline-light:not(:disabled):not(.disabled).active,
.show > .btn-outline-light.dropdown-toggle {
    background-color: white !important;
    color: var(--moriana-black) !important;
    border-color: white !important;
    box-shadow: 0 0 0 0.25rem rgba(242, 5, 5, 0.25) !important;
}

.btn-outline-light:not(:disabled):not(.disabled):active:focus,
.btn-outline-light:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-light.dropdown-toggle:focus {
    background-color: white !important;
    color: var(--moriana-black) !important;
    border-color: white !important;
    box-shadow: 0 0 0 0.25rem rgba(242, 5, 5, 0.25) !important;
}

/* Section Styles */
section {
    padding: var(--section-padding) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--moriana-red);
}

.section-title.text-white h2::after {
    background-color: white;
}

/* Focus Cards */
.focus-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid #dee2e6;
}

.focus-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 270deg,
        var(--moriana-red) 270deg,
        var(--moriana-red) 360deg
    );
    animation: rotateSnake 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -2;
}

.focus-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: white;
    border-radius: 13px;
    z-index: -1;
    transition: background 0.3s ease;
}

.focus-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: transparent;
}

.focus-card:hover::before {
    opacity: 1;
}

.focus-card i {
    font-size: 3rem;
    color: var(--moriana-red);
    margin-bottom: 1.5rem;
    transition: all 0.5s ease;
}

.focus-card:hover i {
    transform: scale(1.2);
}

.focus-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Portfolio Cards */
.portfolio-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.portfolio-card-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--moriana-black) 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portfolio-card-image i {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.3);
    z-index: 1;
    transition: all 0.5s ease;
}

.portfolio-card:hover .portfolio-card-image i {
    transform: scale(1.2);
    color: rgba(255, 255, 255, 0.5);
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-card-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-card h3 {
    color: var(--moriana-black);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.portfolio-card .company-link {
    color: var(--moriana-red);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.portfolio-card .company-link:hover {
    color: var(--moriana-red-dark);
}

.portfolio-card .company-link:hover i {
    transform: translate(3px, -3px);
}

.portfolio-card .company-link i {
    font-size: 1rem;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.portfolio-card .tagline {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--moriana-gray);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.portfolio-card .description {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.portfolio-card .highlight-text {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.75rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    line-height: 1.8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.portfolio-highlight-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0 1rem 0;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.portfolio-highlight-image:hover {
    border-color: var(--moriana-red);
}

.portfolio-highlight-image i {
    font-size: 3rem;
    color: var(--moriana-gray);
    transition: all 0.5s ease;
}

.portfolio-highlight-image:hover i {
    transform: scale(1.2);
}

.portfolio-highlight-image .placeholder-text {
    text-align: center;
    color: var(--moriana-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.portfolio-highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.portfolio-features {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: auto;
}

.portfolio-features h5 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--moriana-black);
    display: flex;
    align-items: center;
}

.portfolio-features h5 i {
    color: var(--moriana-red);
    font-size: 1.1rem;
}

.portfolio-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portfolio-features li {
    padding: 0.6rem 0;
    display: flex;
    align-items: start;
    font-size: 0.95rem;
    line-height: 1.5;
}

.portfolio-features li i {
    color: var(--moriana-red);
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-features li i {
    transform: scale(1.2);
}

.portfolio-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--moriana-red) 0%, var(--moriana-red-dark) 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* Founder Section */
.founder-section {
    background: #ffffff;
    color: var(--moriana-black);
    position: relative;
    padding: 120px 0;
}

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

/* Profile Section */
.founder-profile {
    position: sticky;
    top: 100px;
}

.founder-image-container {
    position: relative;
    width: fit-content;
    margin: 0 auto 2.5rem;
}

.founder-image-frame {
    position: absolute;
    inset: -10px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.founder-image-container:hover .founder-image-frame {
    border-color: var(--moriana-red);
}

.founder-image-modern {
    width: 100%;
    max-width: 350px;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.founder-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--moriana-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(242, 5, 5, 0.3);
}

.founder-badge i {
    font-size: 1.2rem;
    color: white;
}

.founder-info {
    text-align: center;
}

.founder-info h3 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    color: var(--moriana-black);
}

.founder-credentials {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.credential-badge {
    background: #f8f9fa;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid #dee2e6;
    color: #495057;
}

.founder-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--moriana-red);
    margin-bottom: 0.5rem;
}

.founder-subtitle {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto;
}

/* Bio Section */
.founder-bio {
    margin-bottom: 3rem;
}

.bio-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 1.5rem;
}

/* Expertise Section */
.expertise-section {
    margin-top: 3rem;
}

.expertise-heading {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--moriana-black);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.expertise-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--moriana-red);
}

.expertise-list-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.expertise-item {
    position: relative;
    display: flex;
    align-items: start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

/* Snake Border Animation - Conic Gradient Rotation */
.expertise-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 270deg,
        var(--moriana-red) 270deg,
        var(--moriana-red) 360deg
    );
    animation: rotateSnake 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -2;
}

@keyframes rotateSnake {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

.expertise-item::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #f8f9fa;
    border-radius: 10px;
    z-index: -1;
    transition: background 0.3s ease;
}

.expertise-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: transparent;
}

.expertise-item:hover::before {
    opacity: 1;
}

.expertise-item:hover::after {
    background: #ffffff;
}

.expertise-item i {
    color: var(--moriana-red);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.expertise-item span {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    font-weight: 500;
}

/* Stats Section */
.stats-section {
    background: var(--moriana-red);
    color: white;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* R&D Strategy Section */
.rd-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('../assets/images/Technolog.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 120px 0;
}

.rd-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.88) 0%, rgba(42, 42, 42, 0.92) 100%);
    z-index: 1;
}

.rd-section .container {
    z-index: 2;
}

.rd-image-placeholder {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.rd-image-placeholder:hover {
    border-color: var(--moriana-red);
}

.rd-placeholder-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.rd-placeholder-content i {
    font-size: 4.5rem;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.5s ease;
}

.rd-image-placeholder:hover .rd-placeholder-content i {
    transform: scale(1.2);
    color: rgba(255, 255, 255, 0.5);
}

.rd-placeholder-content div {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.rd-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.rd-content {
    padding-left: 2rem;
}

.rd-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

.rd-section .lead {
    font-size: 1.3rem;
    line-height: 1.8;
}

.rd-section p {
    font-size: 1.15rem;
    line-height: 1.9;
}

/* IP Section */
/* Gradient Gray Background */
.bg-gradient-gray {
    background: linear-gradient(135deg, #f8f9fa 0%, white 50%, #f8f9fa 100%);
}

.ip-section {
    background: linear-gradient(135deg, #f8f9fa 0%, white 50%, #f8f9fa 100%);
    padding: 120px 0;
}

.ip-intro {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #555;
}

/* IP Grid - Asymmetric Bento Box Layout */
.ip-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    min-height: 700px;
}

.ip-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.ip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--moriana-red) 0%, var(--moriana-red-dark) 50%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.ip-card:hover::before {
    transform: scaleX(1);
}

.ip-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

/* Asymmetric Grid Layout */
.ip-card-1 {
    grid-column: 1 / 8;
    grid-row: 1 / 2;
}

.ip-card-2 {
    grid-column: 8 / 13;
    grid-row: 1 / 3;
}

.ip-card-3 {
    grid-column: 1 / 8;
    grid-row: 2 / 3;
}

/* Card Image Section */
.ip-card-image {
    position: relative;
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    overflow: hidden;
}

.ip-card-2 .ip-card-image {
    height: 350px;
}

.ip-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--moriana-black) 0%, #2a2a2a 100%);
    position: relative;
}

.ip-image-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.5s ease;
}

.ip-card:hover .ip-image-placeholder i {
    transform: scale(1.2);
}

.ip-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* Floating Icon Badge */
.ip-icon-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--moriana-red) 0%, var(--moriana-red-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(242, 5, 5, 0.4);
    z-index: 2;
    transition: all 0.5s ease;
}

.ip-card:hover .ip-icon-badge {
    transform: rotate(360deg) scale(1.15);
    box-shadow: 0 15px 40px rgba(242, 5, 5, 0.6);
}

.ip-icon-badge i {
    font-size: 1.8rem;
    color: white;
}

/* Card Content */
.ip-card-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.ip-card-1 .ip-card-content {
    padding: 2.5rem 2.5rem 2rem 2.5rem;
}

.ip-card-2 .ip-card-content {
    padding: 3rem 2.5rem;
}

.ip-card-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--moriana-black);
}

.ip-card-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

.ip-image-credit {
    font-size: 0.65rem;
    color: #999;
    margin-top: 0.75rem !important;
    font-style: italic;
    opacity: 0.8;
}

/* Special styling for center tall card */
.ip-card-2 {
    background: linear-gradient(to bottom, white 0%, #fafbfc 100%);
}

.ip-card-2 .ip-card-content h4 {
    font-size: 1.6rem;
}

.ip-card-2 .ip-icon-badge {
    width: 80px;
    height: 80px;
}

.ip-card-2 .ip-icon-badge i {
    font-size: 2rem;
}

/* Footer Info Box */
.ip-footer-box {
    background: linear-gradient(135deg, var(--moriana-black) 0%, #2a2a2a 100%);
    padding: 2rem 2.5rem;
    border-radius: 20px;
    color: white;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    font-size: 1.05rem;
    line-height: 1.7;
}

.ip-footer-box i {
    font-size: 2.5rem;
    color: var(--moriana-red);
    flex-shrink: 0;
}

.ip-footer-box strong {
    color: var(--moriana-red);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(to bottom, white 0%, #fafbfc 100%);
    color: var(--moriana-black);
    padding-bottom: 120px !important;
    min-height: 70vh;
}

/* Contact Info Card */
.contact-info-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    height: 100%;
}

.contact-info {
    font-size: 1.05rem;
    line-height: 1.8;
}

.contact-info p {
    color: var(--moriana-black);
}

.contact-info strong {
    color: var(--moriana-black);
    font-size: 1.1rem;
}

.contact-info i {
    color: var(--moriana-red);
    margin-right: 0.875rem;
    width: 24px;
}

/* Partnership List */
.partnership-list {
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.partnership-list h5 {
    color: var(--moriana-black);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.partnership-list ul {
    margin-bottom: 0;
}

.partnership-list li {
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.partnership-list li:last-child {
    margin-bottom: 0;
}

.partnership-list i {
    color: var(--moriana-red);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.partnership-tagline {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.partnership-tagline em {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Contact Form Card */
.contact-form-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.contact-form-card h4 {
    color: var(--moriana-black);
    font-weight: 700;
    font-size: 1.5rem;
}

/* Contact Form */
.contact-form .contact-input {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.contact-form .contact-input:focus {
    border-color: var(--moriana-red);
    background: white;
    box-shadow: 0 0 0 0.25rem rgba(242, 5, 5, 0.1);
    outline: none;
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--moriana-black);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-form textarea.contact-input {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    background: var(--moriana-red);
    border: none;
    border-radius: 10px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.contact-form .btn-primary:hover::before {
    left: 100%;
}

.contact-form .btn-primary:hover {
    background: var(--moriana-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(242, 5, 5, 0.3);
}

.contact-form .btn-primary:active {
    transform: translateY(0);
    background: var(--moriana-red-dark) !important;
    border-color: var(--moriana-red-dark) !important;
}

.contact-form .btn-primary:focus,
.contact-form .btn-primary:active:focus {
    background: var(--moriana-red-dark) !important;
    border-color: var(--moriana-red-dark) !important;
    box-shadow: 0 0 0 0.25rem rgba(242, 5, 5, 0.25) !important;
    outline: none !important;
}

.form-response {
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
}

.form-response.success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.form-response.error {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* Footer */
footer {
    background: var(--moriana-black);
    padding: 2rem 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--moriana-red);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(242, 5, 5, 0.4);
}

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

.back-to-top:hover {
    background: var(--moriana-red-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(242, 5, 5, 0.5);
}

.back-to-top:focus {
    background: var(--moriana-red-dark);
    box-shadow: 0 0 0 0.25rem rgba(242, 5, 5, 0.25);
    outline: none;
}

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

.fade-in {
    animation: fadeInUp 0.8s ease;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content .tagline {
        font-size: 1.5rem;
    }

    section {
        padding: 60px 0;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* IP Section Responsive */
    .ip-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
        min-height: auto;
    }

    .ip-card-1,
    .ip-card-2,
    .ip-card-3 {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .ip-card-image,
    .ip-card-2 .ip-card-image {
        height: 220px;
    }

    .ip-card-content,
    .ip-card-2 .ip-card-content {
        padding: 2rem 1.5rem;
    }

    .ip-footer-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .ip-footer-box i {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-content .tagline {
        font-size: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-divider {
        width: 60px;
    }

    .navbar-brand img {
        height: 40px;
    }

    .btn-primary,
    .btn-outline-light {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    /* Add margin between wrapped buttons on mobile */
    .hero-content .btn {
        margin-bottom: 1rem;
    }

    section {
        padding: 40px 0;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 2rem 1.5rem;
    }

    .partnership-list {
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }

    .partnership-list h5 {
        font-size: 1rem;
    }

    .partnership-list li {
        font-size: 0.9rem;
    }

    .partnership-tagline {
        padding: 0.875rem 1rem;
    }

    .partnership-tagline em {
        font-size: 0.85rem;
    }

    .founder-profile {
        position: relative;
        top: 0;
        margin-bottom: 3rem;
    }

    .founder-image-modern {
        max-width: 280px;
    }

    .founder-info h3 {
        font-size: 1.75rem;
    }

    .founder-credentials {
        flex-wrap: wrap;
    }

    .expertise-list-modern {
        grid-template-columns: 1fr;
    }

    .expertise-heading {
        font-size: 1.1rem;
    }

    .portfolio-card h3 {
        font-size: 1.5rem;
    }

    .portfolio-card-image {
        height: 220px;
    }

    .portfolio-card-image i {
        font-size: 4rem;
    }

    .portfolio-card-content {
        padding: 1.5rem;
    }

    .portfolio-card .tagline {
        font-size: 1rem;
    }

    .portfolio-features {
        padding: 1rem;
    }

    .portfolio-features li {
        font-size: 0.9rem;
    }

    .rd-section {
        padding: 60px 0;
        background-attachment: scroll;
    }
    
    /* Disable parallax on mobile for performance */
    .hero-section {
        background-attachment: scroll !important;
    }

    .rd-image-placeholder {
        height: 300px;
    }

    .rd-placeholder-content i {
        font-size: 3rem;
    }

    .rd-content {
        padding-left: 0;
        padding-top: 0;
    }

    .rd-section h2 {
        font-size: 1.75rem;
    }

    .rd-section .lead {
        font-size: 1.1rem;
    }

    .rd-section p {
        font-size: 1rem;
    }
}

/* Smooth Scroll Behavior */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
