/*
Theme Name: RealSense Trading Solutions
Theme URI: https://realsenseindia.com/
Author: RealSense
Author URI: https://realsenseindia.com/
Description: A premium dark-mode custom theme for trading solutions including Algo trading, Charting Software, and Digital Marketing.
Version: 1.0.0
Text Domain: realsensetrading
*/

/* CSS Reset & Variables */
:root {
    --bg-dark: #05060b;
    --bg-panel: rgba(22, 26, 36, 0.7);
    --bg-panel-hover: rgba(30, 36, 50, 0.85);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    /* Blue */
    --accent: #8b5cf6;
    /* Purple */
    --neon-blue: #06b6d4;
    --neon-purple: #c084fc;
    --gradient-glow: linear-gradient(135deg, var(--primary), var(--accent));

    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --shadow-neon: 0 0 20px rgba(99, 102, 241, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Gradients */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
    z-index: -1;
}

h1,
h2,
h3,
h4,
.logo,
.nav-links a {
    font-family: 'Space Grotesk', sans-serif;
}

/* Typography Utility */
.gradient-text {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(5, 6, 11, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 5%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--neon-blue);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-glow);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 8rem 5% 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.stats {
    display: flex;
    gap: 3rem;
}

.stat-item h4 {
    font-size: 1.5rem;
    color: var(--neon-purple);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.stat-item p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

/* Image Wrapper */
.image-wrapper {
    position: relative;
    padding: 10px;
}

.image-wrapper img {
    width: 100%;
    border-radius: 16px;
    display: block;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
}

.image-wrapper:hover img {
    transform: scale(1.02);
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--bg-dark);
    padding: 1.2rem;
    border-radius: 16px;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
    display: flex;
    flex-direction: column;
}

.floating-badge span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-blue);
}

/* Services */
.services {
    padding: 6rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--bg-panel-hover);
    border-color: rgba(99, 102, 241, 0.3);
}

.service-card .icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
}

.service-card .icon svg {
    width: 30px;
    height: 30px;
}

.service-card h3 {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Markets Strip */
.markets {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    padding: 3rem 5%;
    position: relative;
    overflow: hidden;
}

.markets-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.markets h3 {
    font-size: 1.8rem;
    color: white;
}

.market-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Contact */
.contact {
    padding: 6rem 5%;
    display: flex;
    justify-content: center;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
}

.contact-info {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info>p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 400px;
}

.contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-details .icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.contact-details strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    color: white;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}

.contact-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-form {
    padding: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

/* Footer */
footer {
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.footer-content .logo {
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade {
    animation: fadeIn 1.5s ease forwards;
    opacity: 0;
}

/* Breakpoints */
@media (max-width: 992px) {

    .hero,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 10rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats {
        justify-content: center;
    }

    .floating-badge {
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .contact-info,
    .contact-form {
        padding: 2rem;
    }
}