/* Global Styles */
:root {
    --primary: #0a192f;
    /* Deep Navy */
    --primary-light: #112240;
    /* Lighter Navy */
    --primary-dark: #020c1b;
    /* Almost Black */
    --secondary: #00f3ff;
    /* Neon Cyan (AI/Tech) */
    --accent: #ccd6f6;
    /* Platinum/Silver (Text) */
    --text-main: #8892b0;
    /* Muted Blue-Grey */
    --text-bright: #e6f1ff;
    /* Bright White-Blue */
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    --font-heading: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--font-heading);
    background-color: var(--primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    color: var(--text-bright);
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-padding {
    padding: 120px 0;
}

.bg-darker {
    background-color: var(--primary-dark);
}

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

/* Buttons */
.btn-primary {
    background-color: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 14px 30px;
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.btn-secondary {
    background-color: var(--secondary);
    border: 1px solid var(--secondary);
    color: var(--primary-dark);
    padding: 14px 30px;
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    margin-left: 20px;
    cursor: pointer;
}

.btn-secondary:hover {
    opacity: 0.9;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(12px);
    height: 90px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -0.02em;
}

.dot {
    color: var(--secondary);
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a:not(.btn-primary) {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-bright);
    position: relative;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--secondary);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: url('assets/hero_bg.png') no-repeat center center/cover;
    position: relative;
    padding-top: 90px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker overlay for better text contrast against the new background */
    background: linear-gradient(135deg, rgba(2, 12, 27, 0.95) 0%, rgba(10, 25, 47, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.terminal-badge {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--secondary);
    border: 1px solid rgba(0, 243, 255, 0.3);
    background: rgba(0, 243, 255, 0.05);
    padding: 8px 16px;
    display: inline-block;
    border-radius: 20px;
    margin-bottom: 25px;
}

.pulse {
    display: inline-block;
    margin-right: 5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--text-bright);
}

.hero .highlight {
    background: linear-gradient(to right, var(--secondary), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3rem;
    max-width: 650px;
    margin-bottom: 50px;
    color: var(--text-main);
}

/* Metrics Bar */
.metrics-bar {
    position: relative;
    z-index: 5;
    background: var(--primary-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    margin-top: -80px;
    /* Overlap hero */
}

.metrics-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 5px;
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* About Section */
.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-header h2::after {
    content: '';
    display: block;
    height: 1px;
    width: 300px;
    background: rgba(255, 255, 255, 0.1);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    margin-top: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-text strong {
    color: var(--text-bright);
}

.about-visual {
    width: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 243, 255, 0.1);
}

.about-visual img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-visual:hover img {
    transform: scale(1.02);
}

/* Business Pillars */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 60px;
}

.pillar-card {
    background: var(--primary-light);
    padding: 40px;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    gap: 0;
    flex-direction: column;
    align-items: flex-start;
}

.pillar-card:hover {
    transform: translateY(-7px);
    background: lighten(var(--primary-light), 5%);
    border-color: rgba(0, 243, 255, 0.2);
}

.pillar-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.pillar-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.3));
}

.pillar-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.pillar-desc {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.pillar-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pillar-tags li {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: rgba(0, 243, 255, 0.1);
    color: var(--secondary);
    padding: 4px 10px;
    border-radius: 12px;
}

.highlight-border {
    border: 1px solid rgba(0, 243, 255, 0.1);
    /* Subtle highlight for PropTech */
}

/* Tech Stack */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    opacity: 0.7;
}

.tech-item {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.tech-item:hover {
    color: var(--secondary);
    transform: scale(1.1);
    opacity: 1;
}

/* Timeline */
.timeline {
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin-left: 20px;
    padding-left: 40px;
    max-width: 800px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -49px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--secondary);
}

.date {
    font-family: var(--font-mono);
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.timeline-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: var(--primary-dark);
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding-bottom: 50px;
}

.footer-brand h2 {
    font-size: 2rem;
    color: var(--text-bright);
    margin-bottom: 10px;
}

.footer-info p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.footer-bottom {
    padding: 30px;
    background: #020c1b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
    transform: translateY(30px);
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .metrics-grid {
        flex-direction: column;
        gap: 30px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 12, 27, 0.85);
    /* Dark overlay */
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    /* Allow scrolling if modal is too tall */
    padding: 20px;
}

.modal-content {
    background-color: var(--primary-light);
    border: 1px solid var(--secondary);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.15);
    animation: modalSlideUp 0.3s ease-out;
    margin: auto;
    /* Center vertically if flex fails */
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--text-main);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.close:hover {
    color: var(--secondary);
}

.modal-header {
    margin-bottom: 30px;
    text-align: left;
}

.modal-header h2 {
    color: var(--secondary);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-header p {
    color: var(--text-main);
    font-size: 0.95rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-bright);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group label .required {
    color: var(--secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-bright);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    transition: 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Phone Inputs */
.phone-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-inputs select {
    width: 80px;
}

.phone-inputs input {
    text-align: center;
}

.phone-inputs span {
    color: var(--text-main);
}

/* Date Range */
.date-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-range span {
    color: var(--text-main);
}

/* Buttons */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-cancel {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.btn-submit {
    background: var(--secondary);
    border: 1px solid var(--secondary);
    color: var(--primary-dark);
    padding: 10px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
}

.btn-submit:hover {
    opacity: 0.9;
}

.btn-cancel:hover {
    border-color: var(--text-bright);
    color: var(--text-bright);
}

.char-count {
    text-align: right;
    color: var(--text-main);
    font-size: 0.75rem;
    margin-top: 5px;
}

/* Select styling fix */
.select-wrapper {
    position: relative;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%2300f3ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

/* Calendar icon fix for date inputs (simplified) */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.lang-switch a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    opacity: 0.7;
}

.lang-switch a:hover {
    color: var(--secondary);
    opacity: 1;
}

.lang-switch a.active {
    color: var(--secondary);
    font-weight: 700;
    opacity: 1;
    position: relative;
}

.lang-switch a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--secondary);
}

.lang-switch .divider {
    color: var(--text-main);
    opacity: 0.3;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .lang-switch {
        display: none;
    }
}

/* Core Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.value-item {
    background: rgba(17, 34, 64, 0.5);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.value-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-bright);
}

.value-item p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}