/* ========================================
   Global Styles
   ======================================== */

/* FontAwesome Icons */
i[class^="fas"] {
    margin-right: 8px;
    display: inline-block;
    width: 20px;
    text-align: center;
}

.contact-item i {
    font-size: 1.5rem;
    color: white;
    margin-right: 12px;
    margin-bottom: 10px;
    display: block;
}

.card h3 i,
.card h2 i {
    color: #2E8B57;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Skip to main content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2E8B57;
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Typography
   ======================================== */

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #222;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #444;
}

h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: #2E8B57;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1a5a38;
    text-decoration: underline;
}

/* ========================================
   Header & Navigation
   ======================================== */

header {
    background: linear-gradient(135deg, #2E8B57 0%, #228B22 100%);
    color: white;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo:hover {
    text-decoration: none;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    opacity: 0.85;
    text-decoration: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    background: linear-gradient(135deg, #2E8B57 0%, #228B22 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="dots" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="1200" height="600" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
    color: white;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #2E8B57;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background-color: #f0f0f0;
    text-decoration: none;
}

/* ========================================
   Sections
   ======================================== */

main {
    flex: 1;
}

.section {
    padding: 80px 0;
}

.section h1,
.section h2 {
    text-align: center;
}

.section-alt {
    background: #f8f9fa;
}

/* ========================================
   Grid & Cards
   ======================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: #2E8B57;
}

.card h3 {
    color: #2E8B57;
    margin-bottom: 15px;
}

.processor-card,
.software-card {
    height: 100%;
}

/* ========================================
   Tables
   ======================================== */

.table-responsive {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

thead {
    background: #2E8B57;
    color: white;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #1a5a38;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

tbody tr:hover {
    background: #f8f9fa;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================
   Disclaimer
   ======================================== */

.disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    color: #856404;
}

.disclaimer h3 {
    color: #856404;
    margin-top: 0;
}

.disclaimer p {
    line-height: 1.8;
}

/* ========================================
   Contact Section
   ======================================== */

.contact {
    background: linear-gradient(135deg, #2E8B57 0%, #228B22 100%);
    color: white;
    text-align: center;
}

.contact h2 {
    color: white;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.contact-item h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.contact-item p {
    font-size: 1.05rem;
    opacity: 0.95;
}

.contact-item a {
    color: white;
    font-weight: 500;
    text-decoration: underline;
}

.contact-item a:hover {
    opacity: 0.8;
}

/* ========================================
   Footer
   ======================================== */

footer {
    background: #333;
    color: #eee;
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #444;
}

footer p {
    margin-bottom: 20px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #eee;
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: #2E8B57;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 50px 0;
    }

    .nav-links {
        display: none;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 20px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    table {
        font-size: 0.85rem;
    }

    th,
    td {
        padding: 10px 8px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .section {
        padding: 30px 0;
    }

    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .card {
        padding: 15px;
    }

    .cta-button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.3rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    header,
    footer,
    .contact {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }

    a {
        color: #2E8B57;
    }
}
