/* GLOBAL RESET & FONTS */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

/* SECTION HEADING */
.section-heading {
    text-align: center;
    font-size: 28px; /* Slightly tighter for compact look */
    font-weight: 700;
    color: #800080; /* Primary Purple */
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-heading::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    margin: 12px auto 0 auto;
    border-radius: 4px;
    background: linear-gradient(90deg, #800080, #000000); /* Purple to Black Gradient */
}

/* LAYOUT STRUCTURE */
.about-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.about-row {
    display: flex;
    align-items: flex-start; /* Aligns content better */
    gap: 50px;
    margin-bottom: 80px;
}

/* ABOUT IMAGE STYLING */
.about-image img {
    width: 100%;
    max-width: 500px;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    /* Premium Shadow: Soft Purple/Black blend */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
    border: 2px solid #800080; /* Primary Purple Border */
}

/* ABOUT CONTENT */
.about-content {
    flex: 1;
}

/* Override for the Heading inside the about content */
.about-content .section-heading::after {
    margin: 12px 0 0 0; /* Left align the underline */
}

.about-content p {
    font-size: 17px;
    line-height: 1.8;
    color: #333333; /* Dark Grey/Black for readability */
    text-align: justify;
}

/* SERVICES GRID */
.services-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px; /* Compact gap */
}

/* FLIP CARD CONTAINER */
.flip-card {
    background: transparent;
    width: 100%;
    height: 120px; /* More compact height */
    perspective: 1000px;
    cursor: pointer;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Smooth premium pop effect */
    transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
    transform: rotateY(180deg);
}

/* FLIP CARD FRONT - PRIMARY PURPLE THEME */
.flip-front {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #800080; /* PRIMARY COLOR */
    box-shadow: 0 4px 15px rgba(128, 0, 128, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    text-align: center;
    backface-visibility: hidden;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff; /* White text */
    flex-direction: column;
    border: 1px solid #660066;
}

/* FLIP CARD BACK - WHITE & PURPLE THEME */
.flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #ffffff; /* White Background */
    border: 2px solid #800080; /* Purple Border */
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    text-align: center;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    font-size: 15px;
    font-weight: 700;
    color: #000000; /* Black Text */
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ICONS */
.icon {
    font-size: 22px;
    margin-bottom: 2px;
}

/* Icon on Front (Purple BG) -> White Icon */
.flip-front .icon {
    color: #ffffff;
}

/* Icon on Back (White BG) -> Purple Icon */
.flip-back .icon {
    color: #800080;
}

/* RESPONSIVE STYLES */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-row { flex-direction: column; text-align: center; }
    .about-content .section-heading { text-align: center; }
    .about-content .section-heading::after { margin: 12px auto 0 auto; }
}

@media (max-width: 480px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .flip-card { height: 110px; }
    .flip-front, .flip-back { font-size: 13px; flex-direction: column; padding: 5px;}
}