/* Custom styles for the services page */

/* Technology Platforms Section - Enhanced UI */
.technology-platforms {
    padding: 100px 0;
    background: linear-gradient(135deg, #003366 0%, #006699 100%);
    position: relative;
    overflow: hidden;
}

.technology-platforms::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255,255,255,0.05) 0%, transparent 20%);
    z-index: 0;
}

.technology-platforms .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.technology-platforms .section-title {
    color: white;
    margin-bottom: 60px;
    position: relative;
    text-align: center;
    font-weight: 700;
}

.technology-platforms .section-title {
    margin-bottom: 60px;
    position: relative;
    text-align: center;
    font-weight: 700;
}

.technology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

.technology-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 15, 45, 0.2);
}

.technology-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(0,0,0,0.03));
    z-index: -1;
    border-radius: 16px;
}

.technology-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 20, 60, 0.4);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(102, 204, 255, 0.3);
}

.technology-icon {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.technology-icon svg {
    transition: transform 0.3s ease;
}

.technology-card:hover .technology-icon svg {
    transform: scale(1.1);
}

.technology-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.technology-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.7;
    transition: color 0.3s ease;
}

.technology-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.15);
    color: #66ccff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 204, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 15, 45, 0.1);
}

.tech-tag:hover {
    background: #66ccff;
    color: #003366;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 100, 200, 0.3);
}

/* Why Choose Us Section - Full height with centered content */
.why-choose-us {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    background-color: white;
}

.why-choose-us .container {
    max-width: 1200px;
    width: 100%;
}

.why-choose-us .section-title {
    margin-bottom: 60px;
}

.why-choose-us .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

/* Responsive adjustments for the Why Choose Us section */
@media (min-width: 1200px) {
    .why-choose-us .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .why-choose-us .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .why-choose-us {
        height: auto;
        min-height: 100vh;
        padding: 60px 0;
    }
    
    .why-choose-us .section-title {
        margin-bottom: 40px;
    }
}

/* Responsive adjustments for technology section */
@media (min-width: 1200px) {
    .technology-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .technology-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .technology-platforms {
        padding: 80px 0;
    }
    
    .technology-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .technology-card {
        padding: 35px 25px;
    }
}

@media (max-width: 767px) {
    .technology-platforms {
        padding: 70px 0;
    }
    
    .technology-platforms .section-title {
        margin-bottom: 50px;
        font-size: 2rem;
    }
    
    .technology-grid {
        grid-template-columns: 1fr;
    }
    
    .technology-card {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .technology-platforms .section-title {
        font-size: 1.8rem;
    }
    
    .technology-card {
        padding: 25px 15px;
    }
}

/* UI Development Section */
.ui-development-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    background: linear-gradient(135deg, #660066 0%, #333366 100%);
    position: relative;
    overflow: hidden;
    color: white;
}

.ui-development-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.08) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255,255,255,0.08) 0%, transparent 20%);
    z-index: 0;
}

.ui-development-section .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.ui-development-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    padding: 20px 0;
}

.ui-development-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ui-development-section .section-title {
    font-size: 2.5rem;
    color: white;
    text-align: left;
    margin-bottom: 0;
    position: relative;
    font-weight: 700;
}

.ui-development-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin-bottom: 0;
}

.ui-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.ui-feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ui-feature:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.ui-feature-icon {
    margin-bottom: 15px;
    color: #66ccff;
}

.ui-feature-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.ui-feature-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 0;
}

.ui-development-cta {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.ui-development-cta .primary-btn {
    background-color: #ffffff;
    color: #660066;
    border: 2px solid #ffffff;
}

.ui-development-cta .primary-btn:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ui-development-cta .secondary-btn {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.ui-development-cta .secondary-btn:hover {
    background-color: #ffffff;
    color: #660066;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ui-development-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui-showcase {
    position: relative;
    width: 100%;
    max-width: 400px;
    perspective: 1000px;
}

.ui-device {
    position: relative;
    width: 100%;
    padding-top: 180%; /* Aspect ratio for mobile device */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ui-screen {
    position: absolute;
    top: 8%;
    left: 5%;
    right: 5%;
    bottom: 8%;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui-element {
    position: absolute;
    border-radius: 8px;
    background: linear-gradient(135deg, #66ccff 0%, #6600cc 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ui-element-1 {
    width: 70%;
    height: 20%;
    top: 15%;
    left: 15%;
}

.ui-element-2 {
    width: 60%;
    height: 15%;
    top: 45%;
    left: 20%;
    background: linear-gradient(135deg, #ff6699 0%, #cc6600 100%);
}

.ui-element-3 {
    width: 50%;
    height: 12%;
    top: 70%;
    left: 25%;
    background: linear-gradient(135deg, #00cc66 0%, #0066cc 100%);
}

/* IoT Automation Section */
.iot-automation-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    background: linear-gradient(135deg, #336600 0%, #006633 100%);
    position: relative;
    overflow: hidden;
    color: white;
}

.iot-automation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 25%),
        linear-gradient(135deg, rgba(0,0,0,0.15) 0%, transparent 100%);
    z-index: 0;
}

.iot-automation-section .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.iot-automation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    padding: 20px 0;
}

.iot-automation-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.iot-automation-section .section-title {
    font-size: 2.5rem;
    color: white;
    text-align: left;
    margin-bottom: 0;
    position: relative;
    font-weight: 700;
}

.iot-automation-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin-bottom: 0;
}

.iot-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.iot-feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.iot-feature:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.iot-feature-icon {
    margin-bottom: 15px;
    color: #66cc66;
}

.iot-feature-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.iot-feature-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 0;
}

.iot-automation-cta {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.iot-automation-cta .primary-btn {
    background-color: #ffffff;
    color: #336600;
    border: 2px solid #ffffff;
}

.iot-automation-cta .primary-btn:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.iot-automation-cta .secondary-btn {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.iot-automation-cta .secondary-btn:hover {
    background-color: #ffffff;
    color: #336600;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.iot-automation-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
}

.iot-showcase {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 400px;
    perspective: 1000px;
}

.iot-device-grid {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 30px;
}

.iot-device {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
}

.iot-device:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.device-smart-home {
    grid-column: 1;
    grid-row: 1;
    background: linear-gradient(135deg, #66cc99 0%, #339966 100%);
}

.device-sensor {
    grid-column: 2;
    grid-row: 1;
    background: linear-gradient(135deg, #99cc33 0%, #669900 100%);
}

.device-automation {
    grid-column: 1;
    grid-row: 2;
    background: linear-gradient(135deg, #3399cc 0%, #006699 100%);
}

.device-cloud {
    grid-column: 2;
    grid-row: 2;
    background: linear-gradient(135deg, #cc6699 0%, #993366 100%);
}

.device-label {
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    padding: 10px;
}

.iot-connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.connection-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    transform-origin: 0 0;
    height: 2px;
    animation: pulse 2s infinite;
}

.connection-line.line-1 {
    width: 100px;
    top: 25%;
    left: 45%;
    transform: rotate(45deg);
}

.connection-line.line-2 {
    width: 100px;
    top: 25%;
    left: 55%;
    transform: rotate(-45deg);
}

.connection-line.line-3 {
    width: 100px;
    top: 65%;
    left: 45%;
    transform: rotate(-45deg);
}

.connection-line.line-4 {
    width: 100px;
    top: 65%;
    left: 55%;
    transform: rotate(45deg);
}

.connection-line.line-5 {
    width: 80px;
    top: 45%;
    left: 50%;
    transform: rotate(90deg);
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Responsive adjustments for IoT Automation section */
@media (min-width: 1200px) {
    .iot-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .iot-features-grid {
        grid-template-columns: 1fr;
    }
    
    .iot-automation-content {
        gap: 40px;
    }
}

@media (max-width: 991px) {
    .iot-automation-section {
        min-height: auto;
        padding: 100px 0;
    }
    
    .iot-automation-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .iot-automation-section .section-title {
        text-align: center;
    }
    
    .iot-automation-cta {
        justify-content: center;
    }
    
    .iot-features-grid {
        grid-template-columns: 1fr;
    }
    
    .iot-automation-visual {
        order: -1; /* Move visual above text on mobile */
    }
    
    .iot-showcase {
        max-width: 350px;
        height: 300px;
    }
}

@media (max-width: 767px) {
    .iot-automation-section .section-title {
        font-size: 2rem;
    }
    
    .iot-automation-description {
        font-size: 16px;
    }
    
    .iot-automation-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .iot-automation-cta .primary-btn, 
    .iot-automation-cta .secondary-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .iot-device-grid {
        gap: 20px;
    }
}

/* Responsive adjustments for UI Development section */
@media (min-width: 1200px) {
    .ui-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .ui-features-grid {
        grid-template-columns: 1fr;
    }
    
    .ui-development-content {
        gap: 40px;
    }
}

@media (max-width: 991px) {
    .ui-development-section {
        min-height: auto;
        padding: 100px 0;
    }
    
    .ui-development-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .ui-development-section .section-title {
        text-align: center;
    }
    
    .ui-development-cta {
        justify-content: center;
    }
    
    .ui-features-grid {
        grid-template-columns: 1fr;
    }
    
    .ui-development-visual {
        order: -1; /* Move visual above text on mobile */
    }
}

@media (max-width: 767px) {
    .ui-development-section .section-title {
        font-size: 2rem;
    }
    
    .ui-development-description {
        font-size: 16px;
    }
    
    .ui-development-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .ui-development-cta .primary-btn, 
    .ui-development-cta .secondary-btn {
        width: 100%;
        max-width: 300px;
    }
}