/* ========================================
   Custom Styles for RSI Portfolio
   Extracted from inline styles in index.html
   ======================================== */

/* Hero Section Styles */
.hero-container h2 {
    font-style: italic;
    text-transform: none !important;
}

/* About Section - Image Styles */
.about-img {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

/* Why Choose Us - Tech Ecosystem Container */
.tech-ecosystem {
    height: 450px;
    width: 100%;
    max-width: 420px;
    margin: auto;
    background: transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Central Hub */
.central-hub {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #4a90f2, #00c2ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(74, 144, 242, 0.5);
    z-index: 10;
    animation: rotate 20s linear infinite;
}

.central-hub i {
    font-size: 40px;
    color: white;
}

/* Software Node */
.software-node {
    position: absolute;
    top: 15%;
    left: 20%;
    width: 60px;
    height: 60px;
    background: rgba(74, 144, 242, 0.2);
    border: 2px solid #4a90f2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(74, 144, 242, 0.3);
    animation: float1 4s ease-in-out infinite;
    z-index: 5;
}

.software-node i {
    font-size: 20px;
    color: #4a90f2;
}

/* Hardware Node */
.hardware-node {
    position: absolute;
    top: 20%;
    right: 15%;
    width: 50px;
    height: 50px;
    background: rgba(0, 194, 255, 0.2);
    border: 2px solid #00c2ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 194, 255, 0.3);
    animation: float2 3.5s ease-in-out infinite;
    z-index: 5;
}

.hardware-node i {
    font-size: 18px;
    color: #00c2ff;
}

/* AI Node */
.ai-node {
    position: absolute;
    bottom: 15%;
    left: 15%;
    width: 55px;
    height: 55px;
    background: rgba(74, 144, 242, 0.15);
    border: 2px solid #4a90f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(74, 144, 242, 0.3);
    animation: float3 4.2s ease-in-out infinite;
    z-index: 5;
}

.ai-node i {
    font-size: 22px;
    color: #4a90f2;
}

/* IoT Node */
.iot-node {
    position: absolute;
    bottom: 20%;
    right: 20%;
    width: 45px;
    height: 45px;
    background: rgba(0, 194, 255, 0.15);
    border: 2px solid #00c2ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 194, 255, 0.3);
    animation: float4 3.8s ease-in-out infinite;
    z-index: 5;
}

.iot-node i {
    font-size: 16px;
    color: #00c2ff;
}

/* SVG Connection Lines */
.tech-ecosystem svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.3;
}

/* Particles */
.particle {
    border-radius: 50%;
}

.particle:nth-child(7) {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 4px;
    height: 4px;
    background: #4a90f2;
    animation: particle1 6s ease-in-out infinite;
}

.particle:nth-child(8) {
    position: absolute;
    top: 30%;
    right: 10%;
    width: 3px;
    height: 3px;
    background: #00c2ff;
    animation: particle2 7s ease-in-out infinite;
}

.particle:nth-child(9) {
    position: absolute;
    bottom: 30%;
    left: 15%;
    width: 3px;
    height: 3px;
    background: #4a90f2;
    animation: particle3 5s ease-in-out infinite;
}

/* Animations for Tech Ecosystem */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float1 {
    0%,
    100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

@keyframes float2 {
    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(-8px) translateX(5px);
    }
}

@keyframes float3 {
    0%,
    100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.1);
    }
}

@keyframes float4 {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-6px) rotate(5deg);
    }
}

@keyframes particle1 {
    0%,
    100% {
        opacity: 0.3;
        transform: translate(0, 0);
    }
    50% {
        opacity: 0.8;
        transform: translate(20px, -15px);
    }
}

@keyframes particle2 {
    0%,
    100% {
        opacity: 0.2;
        transform: translate(0, 0);
    }
    50% {
        opacity: 0.7;
        transform: translate(-15px, 20px);
    }
}

@keyframes particle3 {
    0%,
    100% {
        opacity: 0.4;
        transform: translate(0, 0);
    }
    50% {
        opacity: 0.9;
        transform: translate(25px, -10px);
    }
}

/* Services Section - Metrics Container */
.services-metrics {
    height: 100%;
    width: 100%;
    max-width: 450px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 40px 20px;
    gap: 20px;
}

/* Metric Cards */
.metric-card {
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.metric-card:last-child {
    margin-bottom: 0;
}

.services-metrics .metric-card:nth-child(odd) {
    background: linear-gradient(
        135deg,
        rgba(74, 144, 242, 0.1) 0%,
        rgba(74, 144, 242, 0.05) 100%
    );
    border: 2px solid rgba(74, 144, 242, 0.3);
    box-shadow: 0 8px 32px rgba(74, 144, 242, 0.1);
}

.services-metrics .metric-card:nth-child(even) {
    background: linear-gradient(
        135deg,
        rgba(0, 194, 255, 0.1) 0%,
        rgba(0, 194, 255, 0.05) 100%
    );
    border: 2px solid rgba(0, 194, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 194, 255, 0.1);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(74, 144, 242, 0.2);
}

/* Metric Card Icons */
.services-metrics .metric-card i {
    font-size: 48px;
    margin-bottom: 10px;
}

.services-metrics .metric-card:nth-child(odd) i {
    color: #4a90f2;
}

.services-metrics .metric-card:nth-child(even) i {
    color: #00c2ff;
}

/* Metric Numbers */
.services-metrics .metric-number {
    font-size: 48px;
    font-weight: bold;
    margin: 10px 0;
}

.services-metrics .metric-card:nth-child(odd) .metric-number {
    color: #4a90f2;
}

.services-metrics .metric-card:nth-child(even) .metric-number {
    color: #00c2ff;
}

.services-metrics .metric-number span {
    font-size: 36px;
}

/* Special sizing for percentage and plus symbols */
.services-metrics .metric-number span {
    font-size: 32px;
}

/* Metric Labels */
.services-metrics .metric-card h4 {
    font-size: 18px;
    color: #e6e8ee;
    margin: 5px 0;
}

/* ========================================
   Testimonial Submission Form Styling
   Match Contact Form Dark Theme
   ======================================== */

/* Testimonial Form Container */
.testimonial-submit .php-email-form {
    background: rgba(26, 32, 44, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 144, 242, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 30px;
}

/* Testimonial Form Inputs and Textarea */
.testimonial-submit .php-email-form input,
.testimonial-submit .php-email-form textarea {
    background: rgba(45, 55, 72, 0.6) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(74, 144, 242, 0.3) !important;
    color: #e6e8ee !important;
    border-radius: 12px;
    font-family: "Montserrat", sans-serif !important;
    transition: all 0.3s ease;
}

/* File Input Specific Styling */
.testimonial-submit .php-email-form input[type="file"] {
    padding: 10px;
    color: #e6e8ee !important;
}

/* Focus State */
.testimonial-submit .php-email-form input:focus,
.testimonial-submit .php-email-form textarea:focus {
    border-color: #4a90f2 !important;
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 242, 0.25) !important;
    background: rgba(45, 55, 72, 0.8) !important;
    outline: none;
}

/* Placeholder Text */
.testimonial-submit .php-email-form input::placeholder,
.testimonial-submit .php-email-form textarea::placeholder {
    color: rgba(230, 232, 238, 0.5) !important;
}

/* Labels */
.testimonial-submit .php-email-form .form-label {
    color: #e6e8ee;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Helper Text */
.testimonial-submit .php-email-form small {
    color: rgba(230, 232, 238, 0.6);
    font-size: 0.875rem;
}

/* Success Message */
.testimonial-submit .php-email-form .sent-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Error Message */
.testimonial-submit .php-email-form .error-message {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    font-weight: 500;
}

/* Loading State */
.testimonial-submit .php-email-form .loading {
    background: rgba(45, 55, 72, 0.9) !important;
    color: #e6e8ee !important;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

/* Submit Button */
.testimonial-submit .php-email-form button[type="submit"] {
    background: linear-gradient(135deg, #4a90f2 0%, #00c2ff 100%) !important;
    border: 2px solid #4a90f2 !important;
    color: white !important;
    font-family: "Montserrat", sans-serif !important;
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(74, 144, 242, 0.3);
}

.testimonial-submit .php-email-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #00c2ff 0%, #4a90f2 100%) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 6px 20px rgba(74, 144, 242, 0.4),
        0 0 30px rgba(74, 144, 242, 0.2);
}

.testimonial-submit .php-email-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   Testimonials Section - Multi-Card Layout
   ======================================== */

/* Testimonials Swiper Container */
.testimonials .testimonials-slider {
    padding: 40px 20px;
}

/* Individual Testimonial Card */
.testimonials .testimonial-item {
    background: rgba(26, 32, 44, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 144, 242, 0.2);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.testimonials .testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 48px rgba(74, 144, 242, 0.3);
    border-color: rgba(74, 144, 242, 0.5);
}

/* Testimonial Image */
.testimonials .testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 3px solid #4a90f2;
    box-shadow: 0 4px 15px rgba(74, 144, 242, 0.3);
}

/* Testimonial Name */
.testimonials .testimonial-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #e6e8ee;
    margin: 15px 0 5px;
}

/* Testimonial Designation */
.testimonials .testimonial-item h4 {
    font-size: 14px;
    color: #4a90f2;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Quote Icon */
.testimonials .quote-icon-small {
    font-size: 32px;
    color: rgba(74, 144, 242, 0.3);
    margin-bottom: 15px;
}

/* Testimonial Text */
.testimonials .testimonial-item p {
    font-size: 15px;
    color: rgba(230, 232, 238, 0.9);
    line-height: 1.8;
    font-style: italic;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Swiper Navigation Buttons */
.testimonials .swiper-button-next,
.testimonials .swiper-button-prev {
    color: #4a90f2;
    background: rgba(74, 144, 242, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.testimonials .swiper-button-next:hover,
.testimonials .swiper-button-prev:hover {
    background: rgba(74, 144, 242, 0.3);
    transform: scale(1.1);
}

.testimonials .swiper-button-next::after,
.testimonials .swiper-button-prev::after {
    font-size: 20px;
}

/* Swiper Pagination */
.testimonials .swiper-pagination-bullet {
    background: #4a90f2;
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.testimonials .swiper-pagination-bullet-active {
    opacity: 1;
    background: #4a90f2;
    width: 30px;
    border-radius: 6px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .testimonials .testimonial-item {
        min-height: 350px;
        padding: 30px 20px;
    }

    .testimonials .testimonial-img {
        width: 80px;
        height: 80px;
    }

    .testimonials .swiper-button-next,
    .testimonials .swiper-button-prev {
        display: none;
    }
}
