/* Global Styles and Variables */
:root {
    /* Light mode colors */
    --primary-color: #3366ff;
    --secondary-color: #5c7cfa;
    --accent-color: #1e40af;
    --text-color: #333;
    --bg-color: #ffffff;
    --card-bg: #f8f9fa;
    --border-color: #e1e4e8;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --header-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #f8f9fa;
    --primary-color-rgb: 51, 102, 255;
}

.dark-mode {
    /* Dark mode colors */
    --primary-color: #5c7cfa;
    --secondary-color: #3366ff;
    --accent-color: #8aa2ff;
    --text-color: #e1e4e8;
    --bg-color: #1a1a1a;
    --card-bg: #2a2a2a;
    --border-color: #444;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --header-bg: rgba(26, 26, 26, 0.95);
    --footer-bg: #252525;
    --primary-color-rgb: 92, 124, 250;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#theme-switch {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    box-shadow: 0 2px 8px var(--shadow-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    transition: all 0.3s ease;
}

#theme-switch:hover {
    transform: scale(1.1);
}

.light-mode .moon-icon {
    display: none;
}

.dark-mode .sun-icon {
    display: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* GitHub Button Styling */
.github-btn {
    background-color: #333;
    color: white !important;
}

.github-btn:hover {
    background-color: #111;
}

.dark-mode .github-btn {
    background-color: #333;
    color: white !important;
}

.dark-mode .github-btn:hover {
    background-color: #111;
}

.github-btn svg {
    fill: white;
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    box-shadow: 0 2px 8px var(--shadow-color);
    z-index: 100;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
}

.logo svg {
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-btn span {
    height: 2px;
    width: 100%;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    /* Animation removed */
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 30px var(--shadow-color);
}

/* Remove float animation keyframes as they're no longer needed */
/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    opacity: 0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.feature-card.hovered {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.feature-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.feature-icon svg {
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Demo Section */
.demo {
    padding: 100px 0;
    background-color: var(--card-bg);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000; /* Optional: background for letterboxing */
    margin: 0 auto; /* Center the container */
    border-radius: 8px; /* Optional: rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Optional: subtle shadow */
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px; /* Match container's rounded corners if any */
}

/* Screenshots Section */
.screenshots {
    padding: 100px 0;
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.screenshot {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px var(--shadow-color);
    transition: transform 0.3s ease;
    opacity: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    height: 100%;
}

.screenshot:hover {
    transform: translateY(-10px);
}

.screenshot.hovered {
    transform: translateY(-15px);
}

.screenshot img {
    width: 100%;
    height: 200px; /* Fixed height for consistent appearance */
    display: block;
    cursor: pointer;
    border-radius: 12px 12px 0 0;
    object-fit: cover; /* Ensure images maintain aspect ratio */
}

.screenshot h3 {
    padding: 15px 15px 5px;
    text-align: center;
    margin-bottom: 0;
}

.screenshot p {
    padding: 0 15px 15px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color);    /* Make all descriptions same height with ellipsis for overflow */
    min-height: 80px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0;
}

/* Modal for viewing full-size images */
.img-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.modal-content {
    animation-name: zoom;
    animation-duration: 0.6s;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--card-bg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 30px var(--shadow-color);
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color);
    gap: 10px;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.social-link.hovered {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px var(--shadow-color);
}

.social-link svg {
    fill: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    padding: 20px 0;
    box-shadow: 0 -2px 8px var(--shadow-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    transition: transform 0.2s ease;
}

.footer-logo:hover {
    transform: scale(1.02);
}

.footer-logo svg {
    color: var(--primary-color);
    width: 22px;
    height: 22px;
}

.footer-logo span {
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: var(--text-color);
}

.copyright {
    color: var(--text-color);
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animated {
    animation: fadeInUp 0.6s ease forwards;
}

.section-title.animated {
    animation: fadeIn 0.8s ease forwards;
}

/* Security Benefits Section */
.security-benefits {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.benefits-content {
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.benefit-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.benefit-icon svg {
    color: var(--primary-color);
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.benefit-card p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Why Open Code Reviewer Section */
.why-section {
    padding: 100px 0;
    background-color: var(--card-bg);
}

.why-content {
    max-width: 1200px;
    margin: 0 auto;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.why-card {
    background-color: var(--bg-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.why-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.why-text {
    margin-top: 15px;
    padding-left: 20px;
}

.why-text h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.why-text p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Availability Section */
.availability-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.availability-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--shadow-color);
}

.availability-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.availability-note {
    margin-top: 30px;
    font-style: italic;
    color: var(--primary-color);
    font-weight: 500;
}

/* User-Friendly Section */
.user-friendly-section {
    padding: 100px 0;
    background-color: var(--card-bg);
}

.user-friendly-content {
    max-width: 1200px;
    margin: 0 auto;
}

.user-friendly-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: center;
}

.user-friendly-text {
    text-align: left;
}

.user-friendly-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.benefit-list {
    list-style-type: none;
    padding-left: 10px;
    margin-bottom: 25px;
}

.benefit-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.benefit-list li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--primary-color);
}

.highlight-text {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    padding: 15px;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    font-weight: 500;
}

.user-friendly-image {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-friendly-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 25px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.user-friendly-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.image-caption {
    margin-top: 15px;
    text-align: center;
    font-style: italic;
    color: var(--text-color);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .user-friendly-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--header-bg);
        padding: 20px 0;
        box-shadow: 0 10px 15px var(--shadow-color);
    }
      .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-logo span {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .social-links {
        flex-direction: column;
    }
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .why-card {
        text-align: center;
    }
    
    .why-number {
        position: relative;
        margin: 0 auto 15px;
        top: 0;
        left: 0;
    }
    
    .why-text {
        padding-left: 0;
    }
}

/* Animations for benefits */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.why-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: calc(var(--i) * 0.1s);
}

/* Add this to your existing styles */
.theme-item {
    display: flex;
    align-items: center;
}

.theme-item button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.theme-item svg {
    width: 20px;
    height: 20px;
}
