/* Base Styles */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5649c0;
    --secondary: #00cec9;
    --dark: #2d3436;
    --light: #f5f6fa;
    --gray: #636e72;
    --light-gray: #dfe6e9;
    --success: #00b894;
    --danger: #d63031;
    --warning: #fdcb6e;
    
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-main);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header.scrolled {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 80px;
    height: 40px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}


.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--dark);
    margin: 5px 0;
    transition: var(--transition);
}

.nav ul {
    display: flex;
    gap: 30px;
    margin-left: auto; /* This pushes nav to the right */
}

.nav a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

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

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

/* About & Contact Page Styles */
.about-hero, .contact-hero {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(0, 206, 201, 0.1) 100%);
}

.about-hero h1, .contact-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.mission-section, .team-section, .locations-section, 
.contact-form-section, .map-section {
    padding: 60px 0;
}

.team-grid, .locations-grid, .map-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card, .location-card, .map-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-card:hover, .location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.team-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--light-gray);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.position {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 15px;
}

.contact-form-section .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
}

.contact-method {
    margin-bottom: 30px;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.expertise-banner {
    background: linear-gradient(135deg, #6c5ce7 0%, #00cec9 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 1200px;
    text-align: center;
}

.expertise-banner h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.expertise-banner p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.project-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.project-pill {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-pill i {
    font-size: 0.9rem;
}

    /* Additional CSS for new project sections */
    .industry-showcase {
        padding: 80px 0;
        background-color: #f8f9fa;
    }
    
    .industry-card {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        margin-bottom: 30px;
    }
    
    .industry-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    }
    
    .industry-image {
        height: 200px;
        background-size: cover;
        background-position: center;
    }
    
    .logistics-bg {
        background-image: url('images/logistics-project.jpg');
    }
    
    .housing-bg {
        background-image: url('images/housing-project.jpg');
    }
    
    .industry-content {
        padding: 25px;
    }
    
    .industry-tag {
        display: inline-block;
        background: #6c5ce7;
        color: white;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
    
    .logistics-tag {
        background: #00cec9;
    }
    
    .housing-tag {
        background: #fd79a8;
    }
    
    .tech-stack {
        margin: 15px 0;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tech-item {
        background: #f1f1f1;
        padding: 4px 10px;
        border-radius: 4px;
        font-size: 0.8rem;
        font-family: 'Roboto Mono', monospace;
    }

.map-placeholder {
    height: 250px;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 992px) {
    .contact-form-section .container {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-hero h1, .contact-hero h1 {
        font-size: 3rem;
    }
}

/* Hero Section */
.hero {
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    z-index: -1;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(108, 92, 231, 0.1)" stroke-width="0.5"/></svg>');
    background-size: 50px 50px;
    opacity: 0.5;
}

/* Section Styles */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.dark-section {
    background-color: #f8f9fa;
    position: relative;
}

.dark-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(0, 206, 201, 0.05)" stroke-width="0.5"/></svg>');
    background-size: 50px 50px;
    opacity: 0.5;
    z-index: 0;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.article-content {
    padding: 20px;
}

.article-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.article-content h3 a:hover {
    color: var(--primary);
}

.article-meta {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 15px;
}

/* AI Music Demo */
.demo-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    background-color: white;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
}

.demo-description {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.demo-description h3 {
    font-size: 1.5rem;
}

.controls {
    display: flex;
    gap: 15px;
}

.visualizer {
    width: 100%;
    height: 300px;
    background-color: #f8f9fa;
    border-radius: var(--radius-md);
    overflow: hidden;
}

#music-canvas {
    width: 100%;
    height: 100%;
}

/* Newsletter */
.newsletter-card {
    display: grid;
    grid-template-columns: 1fr;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.newsletter-content {
    padding: 40px;
    color: white;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    border: none;
    font-family: var(--font-main);
}

.newsletter-form button {
    white-space: nowrap;
}

.newsletter-image {
    display: none;
}

/* Article Page Styles */
.article-container {
    max-width: 800px;
    margin: 100px auto;
    padding: 0 20px;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-hero {
    width: 100%;
    border-radius: var(--radius-md);
    margin-top: 20px;
    box-shadow: var(--shadow-md);
}

.article-body {
    line-height: 1.8;
}

.article-body h2 {
    margin-top: 40px;
    color: var(--primary);
}

.article-body h3 {
    margin-top: 25px;
}

.article-body pre {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 20px 0;
    font-family: var(--font-mono);
}

.article-body code {
    font-family: var(--font-mono);
    background-color: #f8f9fa;
    padding: 2px 5px;
    border-radius: var(--radius-sm);
}

.article-footer {
    margin-top: 50px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-container {
        margin: 80px auto;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--light-gray);
    margin-top: 15px;
}

.footer-links h3,
.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-gray);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* Typewriter Effect */
.typewriter {
    display: inline-block;
    position: relative;
}

.typewriter::after {
    content: '|';
    position: absolute;
    right: -8px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Responsive Styles */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .demo-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .newsletter-card {
        grid-template-columns: 1fr 1fr;
    }
    
    .newsletter-image {
        display: block;
        background-color: rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .newsletter-image img {
        width: 80%;
        height: auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
   
    .nav {
            position: fixed;
            top: 0;
            right: -100%;
            width: 80%;
            max-width: 300px;
            height: 100vh;
            background-color: white;
            box-shadow: var(--shadow-lg);
            transition: var(--transition);
            padding: 80px 30px 30px;
    }
        
    .nav.active {
            right: 0;
    }
        
    .nav ul {
            flex-direction: column;
            gap: 20px;
            margin-left: 0;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .controls {
        flex-direction: column;
    }
}