/* =======================
   STEEL VALLEY TECHNOLOGIES
   Main Stylesheet
   ======================= */

/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* SECTION INTROS */
h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #2c3e50;
}

.section-intro {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    max-width: 800px;
    margin: 20px auto 40px;
    line-height: 1.8;
}

/* =======================
   HERO SECTIONS
   ======================= */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 20px 80px;
    text-align: center;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.5em;
    margin-bottom: 20px;
    opacity: 0.9;
    font-weight: 300;
}

.hero .hero-description {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-hero {
    background: #667eea;
    color: white;
    padding: 100px 20px 60px;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

/* =======================
   STATS SECTION
   ======================= */
.stats {
    background: #f8f9fa;
    padding: 60px 20px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1em;
    color: #666;
    line-height: 1.4;
}

/* =======================
   CAPABILITIES SECTION
   ======================= */
.capabilities {
    padding: 80px 20px;
}

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

.capability-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    background: white;
}

.capability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.capability-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.capability-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.capability-card p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.tech-details {
    font-size: 0.9em;
    color: #888;
    font-style: italic;
    margin-top: 15px;
}

/* =======================
   FEATURED WORK / PROJECTS
   ======================= */
.featured-work {
    background: #f8f9fa;
    padding: 80px 20px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.project-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.project-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.project-header h3 {
    flex: 1;
    font-size: 1.5em;
    color: #2c3e50;
}

.project-tag {
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    white-space: nowrap;
    flex-shrink: 0;
}

.project-content h4 {
    color: #667eea;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.project-content p {
    line-height: 1.7;
    margin-bottom: 15px;
}

.outcome-highlight {
    font-weight: bold;
    color: #27ae60;
    font-size: 1.1em;
    margin-top: 15px;
}

.tech-stack {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* =======================
   WHY SECTION
   ======================= */
.why-section {
    padding: 80px 20px;
}

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

.reason-card {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.reason-card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.reason-card p {
    line-height: 1.7;
}

/* =======================
   PRODUCTS SECTION
   ======================= */
.products-preview {
    background: #f8f9fa;
    padding: 80px 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.product-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-logo {
    width: 80px;
    height: 80px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.coming-soon-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f39c12;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.product-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.product-card p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: #555;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.feature-badge {
    background: #e8e8e8;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    color: #555;
}

.product-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.product-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.product-link:hover {
    text-decoration: underline;
    color: #764ba2;
}

.product-link.external {
    color: #e74c3c;
}

.product-link.external:hover {
    color: #c0392b;
}

/* =======================
   GITHUB SECTION
   ======================= */
.github-section {
    padding: 80px 20px;
    background: #2c3e50;
    color: white;
    text-align: center;
}

.github-section h2 {
    color: white;
}

.github-section p {
    max-width: 900px;
    margin: 0 auto 20px;
    line-height: 1.8;
    font-size: 1.1em;
}

.github-image {
    max-width: 900px;
    margin: 40px auto;
}

.github-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.github-caption {
    font-style: italic;
    opacity: 0.8;
    font-size: 1.1em;
    margin-top: 20px;
}

/* =======================
   FINAL CTA
   ======================= */
.final-cta {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.final-cta h2 {
    color: white;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-option {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.contact-option h4 {
    margin-bottom: 15px;
    font-size: 1.2em;
}

.contact-option p {
    font-size: 1em;
    margin-bottom: 10px;
}

.contact-option a {
    color: white;
    font-weight: bold;
}

/* =======================
   BUTTONS & CTAs
   ======================= */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1em;
    cursor: pointer;
    border: none;
}

.cta-button.primary {
    background: #27ae60;
    color: white;
}

.cta-button.primary:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

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

.cta-button.secondary:hover {
    background: white;
    color: #667eea;
}

.cta-centered {
    text-align: center;
    margin-top: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =======================
   WORK PAGE STYLES
   ======================= */
.project-filter {
    background: #f8f9fa;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95em;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.projects-detailed {
    padding: 60px 20px;
}

.project-detail {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.project-detail h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: left;
    font-size: 2em;
}

.project-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.tag {
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85em;
}

.status-badge {
    background: #f39c12;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85em;
}

.project-body h3 {
    color: #667eea;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4em;
    text-align: left;
}

.project-body p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.project-body ul {
    margin-left: 20px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-body ul li {
    margin-bottom: 10px;
}

.project-body ul li strong {
    color: #667eea;
}

.outcome-box {
    background: #e8f5e9;
    border-left: 4px solid #27ae60;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.outcome-stat {
    font-size: 1.5em;
    color: #27ae60;
    font-weight: bold;
    margin-bottom: 10px;
}

.outcome-box p {
    margin: 0;
    line-height: 1.6;
}

.tech-list {
    color: #666;
    font-style: italic;
    line-height: 1.6;
}

/* Technologies Section */
.technologies {
    background: #f8f9fa;
    padding: 80px 20px;
}

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

.tech-category h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-badge {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    transition: all 0.3s;
}

.tech-badge:hover {
    border-color: #667eea;
    background: #f0f3ff;
}

/* =======================
   ABOUT PAGE STYLES
   ======================= */
.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: center;
}

.about-hero-image img {
    width: 100%;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.lead {
    font-size: 1.3em;
    line-height: 1.6;
    margin-top: 10px;
}

.about-story {
    padding: 80px 20px;
}

.story-timeline {
    max-width: 900px;
    margin: 40px auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 20px;
    margin-bottom: 60px;
    position: relative;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
    margin-top: 5px;
    position: relative;
    z-index: 2;
}

.timeline-item:not(:last-child) .timeline-marker::after {
    content: '';
    position: absolute;
    width: 2px;
    height: calc(100% + 60px);
    background: #e0e0e0;
    left: 9px;
    top: 20px;
}

.timeline-content h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.timeline-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.timeline-content p strong {
    color: #27ae60;
}

.technical-background {
    background: #f8f9fa;
    padding: 80px 20px;
}

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

.background-item h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.background-item ul {
    line-height: 1.8;
    list-style-position: inside;
}

.background-item ul li {
    margin-bottom: 10px;
}

.approach-philosophy {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-content h3 {
    color: #667eea;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.philosophy-content p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.beyond-code {
    background: #f8f9fa;
    padding: 80px 20px;
}

.personal-content {
    max-width: 900px;
    margin: 20px auto;
    line-height: 1.8;
}

.personal-content p {
    margin-bottom: 20px;
    font-size: 1.05em;
}

/* =======================
   CONTACT PAGE STYLES
   ======================= */
.contact-methods {
    padding: 80px 20px;
}

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

.contact-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    background: white;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.contact-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.contact-card p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-detail {
    font-weight: bold;
    margin: 20px 0;
    font-size: 1.1em;
}

.contact-detail a {
    color: #667eea;
    text-decoration: none;
}

.contact-detail a:hover {
    text-decoration: underline;
}

.contact-form-section {
    background: #f8f9fa;
    padding: 80px 20px;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-container h2 {
    margin-bottom: 10px;
}

.form-container > p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.contact-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.location-info {
    padding: 80px 20px;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
    text-align: center;
}

.location-item h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.location-item p {
    line-height: 1.6;
}

/* =======================
   GET STARTED PAGE STYLES
   ======================= */
.get-started-process {
    padding: 80px 20px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.process-step {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px;
}

.process-step h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.process-step p {
    line-height: 1.6;
}

/* =======================
   FOOTER STYLES
   ======================= */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 15px;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 10px;
}

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

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

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid #4a5f7a;
    padding-top: 30px;
    text-align: center;
}

/* =======================
   RESPONSIVE DESIGN
   ======================= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }

    .hero .subtitle {
        font-size: 1.2em;
    }

    .page-hero h1 {
        font-size: 2em;
    }

    .about-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-hero-image img {
        max-width: 200px;
        margin: 0 auto;
    }

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

    .capability-grid,
    .project-grid,
    .product-grid,
    .reason-grid {
        grid-template-columns: 1fr;
    }

    .hero-ctas,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .contact-options {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5em;
    }

    .stat-item h3 {
        font-size: 2em;
    }

    .project-detail,
    .form-container {
        padding: 20px;
    }
}
