/* Fallback Variables */
:root {
    --gradient-dark: linear-gradient(135deg, #000000, #333333);
    --gradient-primary: linear-gradient(135deg, #2563eb, #3b82f6);
    --gradient-secondary: linear-gradient(135deg, #7c3aed, #a855f7);
    --white: #ffffff;
    --primary-blue: #2563eb;
    --secondary-purple: #7c3aed;
}

/* Website Development Section */
.development-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Grid Layout - 3 Cards Per Row */
.model-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem 2rem;
    margin-top: 2rem;
}

/* Card Base Styles */
.model-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 5px solid;
}

.model-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* WordPress Card Styles */
.wordpress-card {
    border-left-color: #21759b;
}

.wordpress-card:hover {
    background: linear-gradient(135deg, #21759b, #2e8fc7);
    color: white;
}

.wordpress-card:hover .card-title,
.wordpress-card:hover .card-description,
.wordpress-card:hover .card-features li {
    color: white;
}

.wordpress-card:hover .card-features li i {
    color: white;
}

.wordpress-card:hover .card-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.wordpress-card:hover .wordpress-badge {
    background: white !important;
    color: #21759b !important;
}

/* Shopify Card Styles */
.shopify-card {
    border-left-color: #5E8E3E;
}

.shopify-card:hover {
    background: linear-gradient(135deg, #5E8E3E, #7AB55C);
    color: white;
}

.shopify-card:hover .card-title,
.shopify-card:hover .card-description,
.shopify-card:hover .card-features li {
    color: white;
}

.shopify-card:hover .card-features li i {
    color: white;
}

.shopify-card:hover .card-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.shopify-card:hover .shopify-badge {
    background: white !important;
    color: #5E8E3E !important;
}

/* PHP Card Styles */
.php-card {
    border-left-color: #777bb4;
}

.php-card:hover {
    background: linear-gradient(135deg, #777bb4, #8993c4);
    color: white;
}

.php-card:hover .card-title,
.php-card:hover .card-description,
.php-card:hover .card-features li {
    color: white;
}

.php-card:hover .card-features li i {
    color: white;
}

.php-card:hover .card-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.php-card:hover .php-badge {
    background: white !important;
    color: #777bb4 !important;
}

/* Laravel Card Styles */
.laravel-card {
    border-left-color: #ff2d20;
}

.laravel-card:hover {
    background: linear-gradient(135deg, #ff2d20, #ff4d3d);
    color: white;
}

.laravel-card:hover .card-title,
.laravel-card:hover .card-description,
.laravel-card:hover .card-features li {
    color: white;
}

.laravel-card:hover .card-features li i {
    color: white;
}

.laravel-card:hover .card-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.laravel-card:hover .laravel-badge {
    background: white !important;
    color: #ff2d20 !important;
}

/* Mobile Card Styles */
.mobile-card {
    border-left-color: #34a853;
}

.mobile-card:hover {
    background: linear-gradient(135deg, #34a853, #4caf50);
    color: white;
}

.mobile-card:hover .card-title,
.mobile-card:hover .card-description,
.mobile-card:hover .card-features li {
    color: white;
}

.mobile-card:hover .card-features li i {
    color: white;
}

.mobile-card:hover .card-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.mobile-card:hover .mobile-badge {
    background: white !important;
    color: #34a853 !important;
}

/* API Card Styles */
.api-card {
    border-left-color: #ff9800;
}

.api-card:hover {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    color: white;
}

.api-card:hover .card-title,
.api-card:hover .card-description,
.api-card:hover .card-features li {
    color: white;
}

.api-card:hover .card-features li i {
    color: white;
}

.api-card:hover .card-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.api-card:hover .api-badge {
    background: white !important;
    color: #ff9800 !important;
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.wordpress-card .card-icon {
    background: linear-gradient(135deg, #21759b, #2e8fc7);
}

.shopify-card .card-icon {
    background: linear-gradient(135deg, #5E8E3E, #7AB55C);
}

.php-card .card-icon {
    background: linear-gradient(135deg, #777bb4, #8993c4);
}

.laravel-card .card-icon {
    background: linear-gradient(135deg, #ff2d20, #ff4d3d);
}

.mobile-card .card-icon {
    background: linear-gradient(135deg, #34a853, #4caf50);
}

.api-card .card-icon {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.card-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    margin-top: 10px;
}

.card-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.card-features li {
    color: #666;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.card-features li i {
    margin-right: 8px;
    width: 16px;
}

.wordpress-card .card-features li i {
    color: #21759b;
}

.shopify-card .card-features li i {
    color: #5E8E3E;
}

.php-card .card-features li i {
    color: #777bb4;
}

.laravel-card .card-features li i {
    color: #ff2d20;
}

.mobile-card .card-features li i {
    color: #34a853;
}

.api-card .card-features li i {
    color: #ff9800;
}

.card-badge {
    margin-top: 1.5rem;
}

.model-card-badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    display: inline-block;
}

.wordpress-badge {
    background: #21759b !important;
}

.shopify-badge {
    background: #5E8E3E !important;
}

.php-badge {
    background: #777bb4 !important;
}

.laravel-badge {
    background: #ff2d20 !important;
}

.mobile-badge {
    background: #34a853 !important;
}

.api-badge {
    background: #ff9800 !important;
}

/* Technologies Section */
.tech-section {
    padding: 80px 0;
    background: white;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.tech-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tech-item h4 {
    font-size: 1rem;
    color: #333;
    margin: 0;
}

/* Process Section (Timeline Style) */
.process-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-content {
    width: 45%;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.step-content:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.step-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 1;
    border: 3px solid white;
}

.step-title {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.step-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Results Section */
.results-section {
    background: var(--gradient-dark);
    color: white;
    padding: 80px 0;
}

.results-section .section-title {
    color: white;
}

.results-section .section-subtitle {
    color: #ccc;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.result-card {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.result-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-10px);
}

.result-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 0.5rem;
    animation: countUp 2s ease-out forwards;
}

.result-card p {
    color: #ccc;
    font-size: 1rem;
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Why Choose Us Section Styling */
.why-choose-section {
    padding: 80px 0;
    background-color: #ffffffff;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.why-choose-item {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.why-choose-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.why-choose-item i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    display: block;
    transition: transform 0.3s ease;
}

.why-choose-item:hover i {
    transform: scale(1.1);
}

.why-choose-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.why-choose-item p {
    font-size: 1rem;
    color: #666 !important;
    line-height: 1.6;
}

/* Fade-in Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .model-card-grid, .results-grid, .why-choose-grid, .tech-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .main-title, .section-title {
        font-size: 2rem;
    }

    .model-card, .result-card {
        padding: 1.5rem;
    }

    .development-section, .process-section, .results-section, .why-choose-section, .tech-section {
        padding: 60px 0;
    }

    /* Process Timeline Mobile Fixes */
    .process-timeline::before {
        left: 20px;
        transform: none;
    }

    .process-step, .process-step:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 2rem;
    }

    .step-content {
        width: 100%;
        margin-left: 50px;
        padding: 1rem;
    }

    .step-number {
        left: 20px;
        transform: translateY(-50%);
    }

    .model-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .step-content {
        margin-left: 40px;
        padding: 0.8rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .why-choose-section {
        padding: 60px 0;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .why-choose-item {
        padding: 1.5rem;
    }
    
    .why-choose-item i {
        font-size: 2.2rem;
    }
    
    .why-choose-item h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .why-choose-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .why-choose-item {
        padding: 1.2rem;
    }
    
    .why-choose-item i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}