/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    color: white;
}

.btn-secondary {
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-dark);
}

.btn-dark {
    background: var(--bg-dark);
    color: white;
}

.btn-dark:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-quote-animated {
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}



.btn-quote-animated:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: white;
}

.btn-quote-animated:hover::before {
    left: 100%;
}

.btn-quote-animated:hover svg {
    transform: translateX(5px);
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card ul {
    margin-top: auto;
    padding-top: 1.5rem;
}

.card ul li {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.card ul li i {
    color: var(--accent);
    margin-right: 0.5rem;
}

/* Badges / Tags */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    width: fit-content;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.tech-tag,
.tech-stack span {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--bg-light);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.tech-tag:hover,
.tech-stack span:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: white;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: white;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* CTA Banner */
.cta-banner {
    background: #2460E9;
    color: #ffffff;
    border-radius: 32px;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(36, 96, 233, 0.2);
}

.cta-banner h2 {
    color: #ffffff !important;
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.cta-banner .btn-white {
    background: #ffffff !important;
    color: #2460E9 !important;
    font-weight: 700;
    border-radius: 50px;
    padding: 1.25rem 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-banner .btn-white:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Section Spacing & Visuals */
.section {
    /* padding: 100px 0; */
    /* Increased from 80px */
}

/* Electronics Visual Elements */
.electronics-bg {
    position: relative;
    overflow: hidden;
}

.electronics-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

.hero-grid-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

/* Project Tech Specifications - Removed in favor of tags */

/* Workflow Steps (Timeline Style) */
.timeline-modern {
    position: relative;
    max-width: 900px;
    margin: 4rem auto;
}

.timeline-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-light), var(--border-color));
}

.timeline-step-modern {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
    gap: 2rem;
}

.timeline-icon-wrap {
    width: 80px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.timeline-icon {
    width: 45px;
    height: 45px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.timeline-content-modern {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-sm);
    flex-grow: 1;
    transition: var(--transition);
}

.timeline-content-modern:hover {
    border-color: var(--primary-light);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

/* Modern List Style */
.modern-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.modern-list li {
    position: relative;
    padding-left: 2rem;
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.modern-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* Industry Grid 2x2 Layout */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.industry-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 250px;
}

/* Expertise Grid Spacing Fix */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 1rem;
    /* Prevent cards touching screen edges */
}

/* Success Message Fix */
.success-message {
    display: none;
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .timeline-modern::before {
        left: 20px;
    }

    .timeline-icon-wrap {
        width: 40px;
    }

    .timeline-icon {
        width: 35px;
        height: 35px;
    }

    .timeline-step-modern {
        gap: 1rem;
    }
}