/* Base Styles */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f5f6fa;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2563eb;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('https://images.unsplash.com/photo-1557597774-9d273605dfa9?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Buttons */
.cta-button, .try-live-button, .report-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover, .try-live-button:hover, .report-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Demo Section */
.demo-section {
    padding: 6rem 2rem;
    background: #f8fafc;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.video-container {
    flex: 1;
    aspect-ratio: 16/9;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.placeholder-video {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.placeholder-video i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.demo-text {
    flex: 1;
}
/* Flow Diagram */
.flow-section {
    padding: 5rem 2rem;
    background: var(--white);
}

.flow-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.flow-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.flow-step {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.flow-step i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
}

.flow-arrow[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Report Section */
.report-section {
    padding: 6rem 2rem;
    background: white;
}

.report-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8rem;
    color: #2563eb;
}
/* Report Section */
.report-section {
    padding: 5rem 2rem;
    background: var(--white);
}

.report-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.report-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}


.media-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.media-toggle button {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    background: var(--white);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.media-toggle button.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: #357abd;
}

/* Team Section */
.team-section {
    padding: 6rem 2rem;
    background: #f8fafc;
    text-align: center;
}

.team-cards {
    max-width: 1200px;
    margin: 3rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #64748b;
}
.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.profile-image img:hover {
    transform: scale(1.05);
}
.social-links {
    margin: 1rem 0;
}

.social-links a {
    color: #2563eb;
    margin: 0 0.5rem;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #1e40af;
}

/* Challenges Section - New Grid Style */
.challenges-section {
    padding: 5rem 2rem;
    background: var(--light-gray);
}

.challenges-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.challenges-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.challenge-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.challenge-card:hover {
    transform: translateY(-5px);
}

.challenge-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.challenge-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.challenge-card p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .challenges-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .challenges-container {
        grid-template-columns: 1fr;
    }
}

/* Technologies Section */
.tech-section {
    padding: 5rem 2rem;
    background: var(--white);
}

.tech-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tech-card:hover {
    transform: translateY(-5px);
}

.tech-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: #1e293b;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-content {
        flex-direction: column;
        text-align: center;
    }

    .report-image {
        order: -1;
    }
}

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

.hero-content, .section-content, .team-card {
    animation: fadeIn 1s ease-out;
}

/* Camera Controls */
#capture-photo, #close-camera {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 10px 5px;
}

#capture-photo:hover, #close-camera:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

#close-camera {
    background: var(--accent-color);
}

.remove-media {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-media:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Base responsive styles */
@media screen and (max-width: 768px) {
    /* Navigation */
    .nav-content {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    /* Hero Section */
    .hero-content {
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    /* Demo Section */
    .demo-section .section-content {
        flex-direction: column;
        padding: 2rem 1rem;
    }

    .video-container, .demo-text {
        width: 100%;
    }

    /* Flow Diagram */
    .flow-diagram {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }

    /* Team Section */
    .team-cards {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
    }

    .team-card {
        width: 100%;
        margin: 0;
    }

    /* Challenges Section */
    .challenges-container {
        padding: 1rem;
    }

    /* Technologies Section */
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    /* Report Section */
    .report-section .section-content {
        flex-direction: column;
        padding: 1rem;
    }

    .report-container {
        width: 100%;
    }

    .report-image {
        display: none; /* Hide decorative image on mobile */
    }

    .media-toggle {
        flex-direction: column;
        gap: 0.5rem;
    }

    .media-toggle button {
        width: 100%;
    }

    #camera-feed {
        width: 100%;
        height: auto;
    }

    /* Form elements */
    .form-group {
        margin-bottom: 1rem;
    }

    textarea, input {
        width: 100%;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

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

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 0.5rem;
    }

    /* Camera controls for mobile */
    #capture-photo, #close-camera {
        width: 100%;
        margin: 5px 0;
    }

    .camera-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Medium devices */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .team-cards {
        flex-wrap: wrap;
        justify-content: center;
    }

    .team-card {
        width: calc(50% - 2rem);
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .report-section .section-content {
        padding: 2rem;
    }
}

/* Landscape mode for mobile devices */
@media screen and (max-height: 480px) and (orientation: landscape) {
    .hero-content {
        padding: 1rem;
    }

    .nav-content {
        padding: 0.5rem 1rem;
    }

    .flow-diagram {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .team-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}

/* High-DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero {
        background-size: cover;
    }
}

/* Print styles */
@media print {
    nav, .hero, .demo-section, .flow-section, 
    .team-section, .challenges-section, 
    .tech-section, footer {
        display: none;
    }

    .report-section {
        page-break-inside: avoid;
    }
}

/* Hamburger menu styles */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    position: absolute;
    right: 20px;
    top: 20px;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    margin: 6px 0;
    transition: 0.4s;
    border-radius: 3px;
}

/* Mobile navigation styles */
@media screen and (max-width: 768px) {
    .nav-content {
        padding: 1rem;
    }

    .hamburger {
        display: block;
        z-index: 100;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        height: 100vh;
        z-index: 90;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding-top: 60px;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        margin: 1.5rem 0;
        font-size: 1.2rem;
    }

    /* Hamburger animation */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Media preview and remove button styles */
#media-preview {
    position: relative;
    margin-top: 10px;
}

#media-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
}

.remove-media {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.remove-media:hover {
    background-color: #c82333;
    transform: scale(1.1);
}

/* Ensure the media preview container has proper positioning */
#media-preview > div {
    position: relative;
    display: inline-block;
}

/* Enhanced box shadows for various components */

/* Team cards */
.team-card {
    box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: rgba(17, 12, 46, 0.25) 0px 48px 100px 0px;
}

/* Challenge cards */
.challenge-card {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 25px 30px -5px, rgba(0, 0, 0, 0.08) 0px 15px 15px -5px;
}

/* Technology cards */
.tech-card {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: rgba(50, 50, 93, 0.35) 0px 13px 27px -5px, rgba(0, 0, 0, 0.4) 0px 8px 16px -8px;
}

/* Report form container */
.report-container {
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
    transition: box-shadow 0.3s ease;
}

.report-container:hover {
    box-shadow: rgba(0, 0, 0, 0.2) 0px 10px 20px 0px;
}

/* Navigation bar */
nav {
    box-shadow: rgba(33, 35, 38, 0.1) 0px 10px 10px -10px;
}

/* Video container */
.video-container {
    box-shadow: rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 56px, rgba(17, 17, 26, 0.1) 0px 24px 80px;
}

/* Flow diagram steps */
.flow-step {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-step:hover {
    transform: translateY(-3px);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 15px 20px -3px, rgba(0, 0, 0, 0.1) 0px 6px 8px -2px;
}

/* Buttons */
.cta-button, .submit-button, .try-live-button {
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover, .submit-button:hover, .try-live-button:hover {
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 20px 0px;
}

/* GitHub Corner Button Styles */
.github-corner {
    position: fixed;
    top: 80px; /* Positioned below navbar */
    right: 20px;
    z-index: 1000;
}

.github-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 20px 0px;
    transition: all 0.3s ease;
}

.github-link:hover {
    transform: translateY(-2px);
    background: #24292e;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 12px 24px 0px;
}

.github-link i {
    font-size: 20px;
}

.github-link span {
    font-size: 14px;
}

/* Make it responsive */
@media screen and (max-width: 768px) {
    .github-corner {
        top: auto;
        bottom: 20px;
        right: 20px;
    }
    
    .github-link {
        padding: 10px 16px;
    }
    
    .github-link span {
        display: none; /* Only show icon on mobile */
    }
    
    .github-link i {
        margin: 0;
        font-size: 24px;
    }
}