:root {
    /* RTLS Colors - based on project's Tailwind configuration */
    --primary-color: #1e40af; /* HSL 222.2 47.4% 11.2% - converted to hex */
    --primary-dark: #1e3a8a; /* Darker shade of primary */
    --secondary-color: #93c5fd; /* HSL 210 40% 96.1% - authorized zone color */
    --accent-color: #f87171; /* Restricted zone color from RTLS */
    --success-color: #6ee7b7; /* Open zone color from RTLS */
    --dark-color: #0f172a; /* Dark background */
    --light-color: #f8fafc; /* Light background */
    --text-color: #1e293b; /* Dark text */
    --light-text: #f8fafc; /* Light text */
    --gray-light: #f1f5f9; /* Light gray */
    --gray: #e2e8f0; /* Medium gray */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--light-color);
}

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

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(58, 123, 213, 0.3);
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-dark) 100%);
    color: var(--light-text);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    padding: 0 30px;
}

.logo .highlight {
    color: var(--secondary-color);
    margin-left: 5px;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0 30px;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

nav ul li a:hover:after {
    width: 100%;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 150px 50px 100px;
    height: 100vh;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

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

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.primary-button, .secondary-button {
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.primary-button {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.secondary-button {
    background: transparent;
    color: white;
    border: 2px solid var(--secondary-color);
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

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

.floating-element img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Section Styling */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.white{
    color: var(--light-color) !important
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Stats Section */
.overview-section {
    background-color: white;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background-color: var(--gray-light);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.team-member {
    text-align: center;
    padding: 20px;
    transition: var(--transition);
    position: relative;
}

.linkedin-link {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
    text-decoration: none;
}

.linkedin-link:hover {
    color: var(--primary-dark);
    transform: translateX(-50%) translateY(-3px);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

/* Features Section */
.features-section {
    background-color: var(--gray-light);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Demo Section */
.video-section {
    padding: 80px 0;
    background: var(--light-color);
}

.video-container {
    /* Removed display:flex. Will be a block element taking full available width. */
    padding: 40px 0; 
}

.video-wrapper {
    display: block; /* Ensure block-level for margin:auto centering */
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 960px; /* Max width for the video wrapper */
    margin-left: auto; /* Center the wrapper */
    margin-right: auto; /* Center the wrapper */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important; /* Force width to fill wrapper */
    height: 100% !important; /* Force height to fill wrapper */
    border: none;
    display: block;
}

.demo-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.demo-section .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.demo-content {
    flex: 1;
    min-width: 300px;
    padding-right: 50px;
}

.demo-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.demo-content .primary-button {
    background: white;
    color: var(--primary-color);
    margin-top: 30px;
}

.demo-video {
    flex: 1;
    min-width: 300px;
}

.video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.video-container img {
    width: 100%;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.play-button i {
    color: white;
    font-size: 30px;
}

.play-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Technical Section */
.technical-section {
    background-color: white;
}

.architecture-diagram {
    text-align: center;
    margin-bottom: 50px;
}

.architecture-diagram img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tech-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tech-card {
    background-color: var(--gray-light);
    padding: 30px;
    border-radius: 15px;
}

.tech-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.tech-card ul {
    list-style-position: inside;
    margin-left: 10px;
}

.tech-card li {
    margin-bottom: 10px;
}

/* Case Study Section */
.case-study-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--dark-color) 100%);
    color: white;
}

.case-study-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 60px 0;
}

.cs-stat {
    text-align: center;
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.cs-stat h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 10px;
}

.case-study-quote {
    font-size: 1.5rem;
    font-style: italic;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
}

.quote-author {
    text-align: center;
    font-weight: 500;
    opacity: 0.8;
}

/* Team Section */
.team-section {
    background-color: var(--gray-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-member {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--gray);
    margin: 0 auto 20px;
}

.team-member h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.team-member p {
    color: #666;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 70px 0 30px;
}

.footer-partner-info {
    display: flex;
    align-items: center;
    padding: 10px 0; /* Add some vertical spacing if needed */
    margin-bottom: 15px; /* Space before copyright */
}

.footer-partner-info img {
    height: 30px; /* Adjust logo size as needed */
    width: auto;
    margin-right: 10px;
}

.footer-partner-info p {
    margin: 0;
    font-size: 0.85em;
    color: var(--muted-foreground); /* Use a suitable footer text color */
}

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

.footer-logo {
    flex: 1;
    min-width: 300px;
    margin-bottom: 30px;
}

.footer-logo p {
    margin-top: 20px;
    max-width: 300px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
}

.link-group {
    margin-left: 50px;
    min-width: 150px;
    margin-bottom: 30px;
}

.link-group h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: 10px;
}

.link-group a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.link-group a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 150px 20px 50px;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .demo-section .container {
        flex-direction: column;
    }
    
    .demo-content {
        text-align: center;
        padding-right: 0;
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 20px;
    }
    
    nav ul {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .link-group {
        margin-left: 0;
        margin-top: 30px;
    }
}

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

.feature-card, .stat-card, .team-member {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.feature-card:nth-child(1), .stat-card:nth-child(1), .team-member:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2), .stat-card:nth-child(2), .team-member:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3), .stat-card:nth-child(3), .team-member:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4), .stat-card:nth-child(4), .team-member:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(5), .stat-card:nth-child(5), .team-member:nth-child(5) {
    animation-delay: 0.5s;
}

.feature-card:nth-child(6), .stat-card:nth-child(6) {
    animation-delay: 0.6s;
}
