@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('global-vars.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary: #0056b3;
    --primary-dark: #003d7a;
    --primary-light: #4a90e2;
    --accent: #00a8ff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f0f7ff;
    --bg-white: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 150, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 150, 0.15);
    --gradient-blue: linear-gradient(135deg, #0056b3 0%, #00a8ff 100%);
}

body {
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.about-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.1;
    z-index: -1;
}

.shape-1 {
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--primary);
}

.shape-2 {
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--accent);
}

.shape-3 {
    top: 40%;
    left: 30%;
    width: 200px;
    height: 200px;
    background: var(--primary-light);
    transform: rotate(45deg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;  /* Adjusted ratio */
    gap: 100px;  /* Increased gap */
    align-items: center;
    padding: 20px 0;
}

.stats-banner {
    display: flex;
    justify-content: space-around;
    background: var(--bg-white);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.image-area {
    flex: 1;
    min-width: 300px;
    position: relative;
    z-index: 2;
    perspective: 1000px;
}

.image-container {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
    width: 95%;  /* Reduced from 100% */
    margin: 0 auto;
}

.image-container:hover {
    transform: rotateY(10deg);
}

.main-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.main-image {
    width: 100%;
    height: auto;
    min-height: 420px;  /* Reduced from 450px */
    max-height: 500px;  /* Reduced from 550px */
    object-fit: cover;
    transition: transform 0.5s ease;
    transform: scale(1.02);
}

.image-container:hover .main-image {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 86, 179, 0) 0%, rgba(0, 86, 179, 0.4) 100%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
    opacity: 0.5;
}

.floating-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.floating-card {
    position: absolute;
    padding: 15px;
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
    animation: float var(--transition-slow) ease-in-out infinite;
}

.floating-card.card-1 {
    top: -30px;
    left: -20px;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 40px;
    right: -30px;
    animation-delay: 1s;
}

.floating-card.card-3 {
    bottom: -20px;
    left: 100px;
    animation-delay: 2s;
}

.card-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.card-text {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-dark);
}

.secondary-image {
    position: absolute;
    width: 70%;  /* Reduced from 75% */
    height: auto;
    min-height: 320px;  /* Reduced from 350px */
    object-fit: cover;
    bottom: -100px;
    right: -40px;
    border-radius: 15px;
    border: 5px solid white;
    box-shadow: var(--shadow-md);
    z-index: 2;
    transform: rotate(5deg);
    transition: transform 0.5s ease;
}

.image-container:hover .secondary-image {
    transform: rotate(8deg) translateZ(20px);
}

.content-area {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 86, 179, 0.1);
    color: var(--primary);
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.section-badge:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s infinite;
}

.main-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
}

.main-heading:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.description {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 90%;
}

.highlight-text {
    color: var(--primary);
    font-weight: 500;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.feature-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: fadeIn calc(var(--transition-slow) + 0.2s) forwards;
    opacity: 0;
}

.feature-card:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.6s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
    z-index: -1;
}

.feature-card:hover:before {
    transform: scaleX(1);
    transform-origin: left;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 86, 179, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 24px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
}

.feature-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.feature-text {
    color: var(--text-light);
    font-size: 14px;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-top: 30px;
}

.primary-btn {
    padding: 15px 30px;
    background: var(--gradient-blue);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 86, 179, 0.4);
}

.primary-btn:hover:before {
    opacity: 1;
}

.btn-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.primary-btn:hover .btn-icon {
    transform: translateX(5px);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.contact-link:hover {
    transform: translateY(-3px);
}

.contact-icon-container {
    width: 60px;
    height: 60px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.contact-icon-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-link:hover .contact-icon-container:before {
    opacity: 1;
}

.contact-icon {
    font-size: 24px;
    color: var(--primary);
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.contact-link:hover .contact-icon {
    color: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 14px;
    color: var(--text-light);
}

.contact-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
}

.floating-element {
    position: absolute;
    z-index: -1;
}

.dots-pattern {
    position: absolute;
    right: 5%;
    top: 20%;
    opacity: 0.4;
}

.blob-1 {
    position: absolute;
    left: -10%;
    bottom: -20%;
    width: 300px;
    height: 300px;
    background: rgba(0, 86, 179, 0.05);
    border-radius: 50%;
    filter: blur(50px);
}

.blob-2 {
    position: absolute;
    right: -5%;
    top: -10%;
    width: 200px;
    height: 200px;
    background: rgba(0, 168, 255, 0.05);
    border-radius: 50%;
    filter: blur(40px);
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.2;
}

.mascot {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 150px;
    transform: translateY(0);
    transition: transform 0.5s ease;
    z-index: 5;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .image-container {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .content-area {
        text-align: center;
        margin: 0 auto;
    }
    
    .main-heading:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .description {
        margin: 0 auto 30px;
    }
    
    .features-grid {
        max-width: 800px;
        margin: 0 auto 30px;
    }
}

@media screen and (max-width: 992px) {
    .about-content {
        flex-direction: column-reverse;
    }
    
    .main-heading {
        font-size: 2.5rem;
    }
    
    .mascot {
        width: 120px;
        right: 10px;
    }
}

@media screen and (max-width: 768px) {
    .about-section {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-heading {
        font-size: 2rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .floating-card {
        transform: scale(0.8);
    }
}

@media screen and (max-width: 480px) {
    .main-heading {
        font-size: 1.8rem;
    }
    
    .section-badge {
        font-size: 12px;
    }
    
    .feature-card {
        padding: 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-banner {
        flex-direction: column;
        gap: 15px;
    }
}

@media screen and (max-width: 400px) {
    .stats-banner {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    
    .main-heading {
        font-size: 1.6rem;
    }
    
    .description {
        font-size: 0.9rem;
    }
    
    .floating-card {
        transform: scale(0.7);
    }
}
