/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 40px;
    background: 
        linear-gradient(135deg, 
            rgba(102, 126, 234, 0.45) 0%, 
            rgba(118, 75, 162, 0.35) 25%,
            rgba(76, 200, 200, 0.25) 75%,
            rgba(118, 75, 162, 0.40) 100%),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: 28px;
    margin: 20px 20px 30px 20px;
    backdrop-filter: blur(25px);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.01);
    backdrop-filter: blur(0.3px);
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    margin-bottom: 25px;
    color: white;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: capitalize;
    position: relative;
    line-height: 1.3;
}

.hero h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #FF6B6B 0%, #4ECDC4 25%, #667eea 50%, #764ba2 75%, #FF6B6B 100%);
    border-radius: 1px;
    animation: colorShift 3s ease-in-out infinite;
}

.hero p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.96);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.3s both;
    line-height: 1.65;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Services Panels */
.services-panels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 20px 20px 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-panel {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(240, 248, 255, 0.08) 25%,
        rgba(250, 252, 255, 0.06) 75%,
        rgba(245, 250, 255, 0.10) 100%);
    backdrop-filter: blur(25px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 0.8s ease forwards;
}

.service-panel:hover {
    transform: translateY(-15px) scale(1.025);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.18) 0%, 
        rgba(240, 248, 255, 0.12) 25%,
        rgba(250, 252, 255, 0.10) 75%,
        rgba(245, 250, 255, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Premium Service Icon Colors */
.service-panel:nth-child(1) .service-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.service-panel:nth-child(2) .service-icon {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 15px 35px rgba(17, 153, 142, 0.4);
}

.service-panel:nth-child(3) .service-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 15px 35px rgba(240, 147, 251, 0.4);
}

.service-panel:nth-child(4) .service-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 15px 35px rgba(79, 172, 254, 0.4);
}

.panel-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1.1) contrast(1.1);
}

.service-panel:hover .panel-image {
    transform: scale(1.05);
    filter: brightness(1.2) contrast(1.2);
}

.panel-content {
    padding: 2.5rem 2rem 2.5rem 2rem;
    position: relative;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    margin: -50px auto 25px auto;
    box-shadow: 0 15px 35px rgba(79, 172, 254, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    border: 4px solid rgba(255, 255, 255, 0.9);
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-panel:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 25px 50px rgba(79, 172, 254, 0.6);
}

.service-panel:hover .service-icon::before {
    opacity: 1;
}

.panel-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFFFFF;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.3px;
    line-height: 1.3;
    position: relative;
    z-index: 2;
    text-align: center;
    transition: all 0.3s ease;
}

.panel-content .subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #64FFDA 0%, #26C6DA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
    text-shadow: none;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(100, 255, 218, 0.3));
}

.unified-content {
    background: linear-gradient(145deg, 
        rgba(15, 25, 45, 0.85) 0%, 
        rgba(25, 35, 55, 0.75) 30%,
        rgba(35, 45, 65, 0.65) 70%,
        rgba(20, 30, 50, 0.80) 100%);
    padding: 28px;
    border-radius: 18px;
    border: 1px solid rgba(85, 110, 150, 0.35);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    text-align: justify;
    text-justify: inter-word;
}

.unified-content .highlight {
    color: #64FFDA;
    font-weight: 500;
    text-shadow: 0 0 8px rgba(100, 255, 218, 0.3);
    transition: all 0.3s ease;
}

.unified-content .highlight:hover {
    color: #26C6DA;
    text-shadow: 0 0 12px rgba(100, 255, 218, 0.5);
}

/* Team Section Specific Styles */
.team-panel {
    grid-column: 1 / -1; /* Span full width */
    max-width: none;
}

.team-panel .panel-image {
    display: none; /* Remove background image for team section */
}

.team-content {
    padding: 3rem 2rem;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.team-member-card {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(240, 248, 255, 0.12) 25%,
        rgba(250, 252, 255, 0.08) 75%,
        rgba(245, 250, 255, 0.12) 100%);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.team-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #4ECDC4 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.20) 0%, 
        rgba(240, 248, 255, 0.16) 25%,
        rgba(250, 252, 255, 0.12) 75%,
        rgba(245, 250, 255, 0.18) 100%);
}

.team-member-card:hover::before {
    opacity: 1;
}

.member-photo-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.team-member-card:hover .member-photo-container {
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.member-photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    border-radius: 50%;
}

.photo-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.photo-text {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.experience-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.member-info {
    text-align: center;
}

.member-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.member-role {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: #64FFDA;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(100, 255, 218, 0.3);
    filter: drop-shadow(0 0 8px rgba(100, 255, 218, 0.4));
}

.member-details {
    text-align: left;
    background: linear-gradient(145deg, 
        rgba(15, 25, 45, 0.85) 0%, 
        rgba(25, 35, 55, 0.75) 30%,
        rgba(35, 45, 65, 0.65) 70%,
        rgba(20, 30, 50, 0.80) 100%);
    padding: 1.8rem;
    border-radius: 15px;
    border: 1px solid rgba(85, 110, 150, 0.35);
    backdrop-filter: blur(15px);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.member-details p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    text-align: justify;
    text-justify: inter-word;
}

.member-details p:last-child {
    margin-bottom: 0;
}

.member-details p:first-child {
    color: #64FFDA;
    font-weight: 500;
    text-shadow: 0 0 6px rgba(100, 255, 218, 0.3);
}

/* Back to Top Button */
#backToTopBtn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    border: none;
    outline: none;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, background 0.3s;
    opacity: 0;
    transform: translateY(15px);
}

#backToTopBtn.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

#backToTopBtn:hover {
    background: linear-gradient(45deg, #5a6fd5, #673f91);
    transform: scale(1.1);
}