/* Modern & Premium Custom Styling Override for VisionCurrent */

:root {
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --primary-color: #1e40af;
    /* Royal Blue */
    --secondary-color: #0284c7;
    /* Sky Blue */
    --accent-color: #38bdf8;
    /* Cyan */
    --dark-bg: #0b1329;
    --dark-card: rgba(255, 255, 255, 0.03);
    --dark-border: rgba(255, 255, 255, 0.08);
    --gradient-hero: linear-gradient(135deg, #070f24 0%, #0c1b40 50%, #17357a 100%);
    --gradient-accent: linear-gradient(135deg, #1e40af 0%, #0284c7 50%, #38bdf8 100%);
    --gradient-glow: 0 8px 32px 0 rgba(2, 132, 199, 0.2);
}

body {
    font-family: var(--font-primary);
    background-color: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Floating Capsule Navigation */
#mainNav {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: fixed;
    top: 1.5rem;
    left: 5%;
    right: 5%;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 30px;
    padding: 0.7rem 2rem !important;
    z-index: 1030;
}

#mainNav.navbar-shrink {
    top: 1rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1) !important;
}

#mainNav .container {
    align-items: center !important;
}

#mainNav .navbar-brand {
    font-size: 1.6rem !important;
    font-weight: 550;
    letter-spacing: -0.03em;
    color: #000000 !important;
    transition: transform 0.3s ease;
    display: flex !important;
    align-items: center !important;
    line-height: normal !important;
}

#mainNav .navbar-brand img {
    margin-right: 6px !important;
    margin-bottom: 0 !important;
}

#mainNav .navbar-brand:hover {
    transform: scale(1.05);
}

#mainNav .nav-link {
    font-weight: 600;
    font-size: 0.925rem;
    padding: 0.5rem 1rem;
    position: relative;
    color: #000000 !important;
    transition: color 0.3s ease;
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

#mainNav .navbar-toggler {
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    padding: 0.25rem 0.50rem;
}

#mainNav .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%2815, 23, 42, 0.75%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (max-width: 991.98px) {
    #mainNav {
        border-radius: 20px;
        padding: 0.75rem 1.5rem !important;
        top: 1rem;
        width: 92%;
        left: 4%;
        right: 4%;
    }

    #mainNav .navbar-collapse {
        margin-top: 1rem;
        background: #ffffff;
        border-radius: 12px;
        padding: 1rem;
    }
}

/* Masthead / Hero section */
header.masthead {
    background: linear-gradient(135deg, rgba(7, 15, 36, 0.65) 0%, rgba(12, 27, 64, 0.65) 50%, rgba(23, 53, 122, 0.65) 100%), url("../assets/img/bg_index.jpeg") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
    padding-top: 10rem;
    padding-bottom: 8rem;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

header.masthead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(30, 64, 175, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

header.masthead h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    background: linear-gradient(to right, #ffffff, #e2e8f0, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sub-page Header styling */
header.page-header {
    background: var(--gradient-hero) !important;
    position: relative;
    padding-top: 8rem;
    padding-bottom: 4rem;
    text-align: center;
}

header.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

header.page-header h1 {
    font-size: 2.75rem;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

/* Custom Buttons */
.btn-gradient {
    background: var(--gradient-accent);
    color: white;
    border: none;
    font-weight: 700;
    border-radius: 50px;
    padding: 1rem 2.25rem;
    letter-spacing: -0.01em;
    box-shadow: var(--gradient-glow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 50%, #1e40af 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.btn-gradient:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(2, 132, 199, 0.4);
}

.btn-gradient:hover::before {
    opacity: 1;
}

.btn-outline-custom {
    background: transparent;
    color: #e2e8f0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
    border-radius: 50px;
    padding: 0.9rem 2.15rem;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Divider styling */
hr.divider {
    height: 4px;
    width: 4.5rem;
    background: var(--gradient-accent);
    opacity: 1;
    border: none;
    border-radius: 2px;
    margin: 1.5rem auto;
}

/* Section styling */
.page-section {
    padding: 7rem 0;
    background-color: #ffffff;
}

.bg-light-custom {
    background-color: #f8fafc;
}

.bg-dark-custom {
    background-color: #0f172a;
    color: #f1f5f9;
}

.bg-dark-custom hr.divider {
    background: var(--gradient-accent);
}

/* Premium Info/Feature Cards */
.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
    border-color: rgba(2, 132, 199, 0.3);
}

.feature-card .icon-wrapper {
    width: 4rem;
    height: 4rem;
    border-radius: 16px;
    background: rgba(2, 132, 199, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.feature-card:hover .icon-wrapper {
    background: var(--gradient-accent);
    color: #ffffff;
    box-shadow: var(--gradient-glow);
}

/* Portfolio grid overlay customization */
.portfolio-box {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    margin: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.portfolio-box:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-box img {
    transition: transform 0.5s ease;
}

.portfolio-box:hover img {
    transform: scale(1.08);
}

.portfolio-box .portfolio-box-caption {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 2rem !important;
}

.portfolio-box:hover .portfolio-box-caption {
    opacity: 1;
}

.portfolio-box-caption .project-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #38bdf8 !important;
}

.portfolio-box-caption .project-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

/* Contact info block styles */
.contact-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.contact-item:hover {
    border-color: rgba(2, 132, 199, 0.2);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.contact-item i {
    font-size: 2.25rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.25rem;
    display: inline-block;
}

/* Modern Form Customization */
.form-floating>.form-control {
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #1e293b;
    padding: 1rem 0.75rem;
}

.form-floating>.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.form-floating>label {
    padding: 1rem 0.75rem;
    color: #64748b;
}

/* Legal Page Content Styles (Terms of Service / Privacy Policy) */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.legal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.03);
}

.legal-card h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #0f172a;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

.legal-card h2:first-of-type {
    margin-top: 0;
}

.legal-card p {
    color: #475569;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.legal-card ul {
    color: #475569;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.legal-card li {
    margin-bottom: 0.5rem;
}

.last-updated {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    display: block;
}

/* Footer Section */
footer {
    background-color: #0f172a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    padding: 4rem 0 !important;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #ffffff;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

/* Responsive Overrides */
@media (max-width: 991.98s) {
    #mainNav {
        background-color: #0f172a !important;
    }

    header.masthead h1 {
        font-size: 2.5rem;
    }
}