/* ===== ABOUT US SECTION CSS ===== */
.about-section {
    padding: 120px 0;
    position: relative;
    overflow: visible;
    background: linear-gradient(to bottom, var(--darker-bg) 0%, rgba(13, 13, 13, 0.85) 100%);
}

/* Fix positioning that was causing overlap issues */
.about-section .section-header {
    position: relative;
    z-index: 10;
    margin-bottom: 80px !important;
    width: 100%;
}

/* Clean up section header spacing */
.about-section .section-subtitle {
    display: inline-block;
    background: linear-gradient(90deg, rgba(126, 211, 33, 0.2) 0%, rgba(154, 122, 249, 0.2) 100%);
    color: #78e57e;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 15px;
    position: relative;
    text-align: left;
    margin-left: 0;
}

.about-section .section-subtitle::before {
    display: none;
}

.about-section .section-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    text-align: left;
    color: var(--text-heading);
    margin-left: 0;
}

.about-section .section-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-body);
    max-width: 65%;
    text-align: left;
    margin-left: 0;
}

/* Reset positioned elements */
.about-section .container {
    position: relative;
    z-index: 5;
}

/* About content grid */
.about-row {
    margin-top: 60px !important;  /* Increased margin to prevent overlap */
    position: relative;
    z-index: 5;  /* Lower z-index than header */
    display: flex;
    align-items: center;
}

/* Ensure columns maintain alignment */
.about-row > div {
    display: flex;
    align-items: center;
}

/* Image styling */
.about-image-wrapper {
    position: relative;
    perspective: 1000px;
    width: 100%;
    margin: 0 auto;
    transform: none;
    animation: fade-in 1s ease forwards 0.4s;
    opacity: 0;
}

/* New fade-in animation to prevent horizontal movement */
@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: rotateY(-5deg);
    height: 660px;
}

.about-image:hover {
    transform: rotateY(0);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.5s ease;
    filter: brightness(0.9) contrast(1.1);
}

.about-image:hover img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1);
}

.about-image-border {
    position: absolute;
    top: -15px;
    left: 15px;
    right: -15px;
    bottom: 15px;
    border: 2px solid rgba(126, 211, 33, 0.3);
    border-radius: 12px;
    z-index: -1;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: rotateY(-5deg) translateZ(-50px);
}

.about-image-wrapper:hover .about-image-border {
    border-color: rgba(156, 39, 176, 0.3);
    transform: rotateY(0) translateZ(-50px);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -30px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-purple));
    color: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.4s ease;
    transform: translateY(0);
    backface-visibility: hidden;
}

.about-image-wrapper:hover .experience-badge {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.experience-badge .years {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    font-family: var(--heading-font);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.experience-badge .label {
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Content styling */
.about-content {
    padding-left: 30px;
    opacity: 0;
    animation: fade-in 1s ease forwards 0.6s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lead-text {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
    position: relative;
    padding-left: 25px;
    border-left: 3px solid;
    border-image: linear-gradient(to bottom, var(--primary-green), var(--primary-purple)) 1;
}

/* Feature items */
.about-features {
    margin-top: 40px;
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.about-feature-item {
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.about-feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.05), rgba(156, 39, 176, 0.05));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(126, 211, 33, 0.2);
}

.about-feature-item:hover::before {
    opacity: 1;
}

.about-feature-item .feature-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background: rgba(126, 211, 33, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-feature-item .feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.4), rgba(156, 39, 176, 0.4));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-feature-item:hover .feature-icon::before {
    opacity: 1;
}

.about-feature-item .feature-icon i {
    font-size: 22px;
    color: var(--primary-green);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.about-feature-item:hover .feature-icon i {
    transform: scale(1.2);
    color: #fff;
}

.feature-text h4 {
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.about-feature-item:hover .feature-text h4 {
    color: var(--primary-green);
    transform: translateX(3px);
}

.feature-text p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.about-feature-item:hover .feature-text p {
    color: var(--text-light);
}

/* CTA button */
.about-cta {
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.8s ease forwards 0.8s;
}

/* Bubble Button Effect */
.about-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 38px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    color: #fff;
    background: linear-gradient(45deg, var(--primary-green), var(--primary-purple));
    border: none;
    box-shadow: 0 6px 15px rgba(126, 211, 33, 0.3);
}

/* Icon styling */
.about-cta .btn i {
    font-size: 14px;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    opacity: 0.8;
    z-index: 2;
}

.about-cta .btn:hover i {
    transform: translateX(5px);
    opacity: 1;
}

/* Text styling */
.about-cta .btn span {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.about-cta .btn:hover span {
    transform: translateX(-3px);
}

/* Bubble Animation */
.about-cta .btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.about-cta .btn::after {
    display: none;
}

.about-cta .btn .bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: bubble-rise var(--duration, 4s) ease-in infinite var(--delay, 0s);
    z-index: 1;
    transform: translateY(100%);
    opacity: 0;
    width: var(--size, 15px);
    height: var(--size, 15px);
    left: var(--left, 50%);
    bottom: 0;
}

@keyframes bubble-rise {
    0% {
        transform: translateY(100%) scale(0.2);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    95% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-100%) scale(0.5);
        opacity: 0;
    }
}

/* Hover effects */
.about-cta .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(126, 211, 33, 0.4), 0 5px 15px rgba(156, 39, 176, 0.2);
    color: #fff;
}

.about-cta .btn:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 8px 20px rgba(126, 211, 33, 0.3);
    transition: all 0.2s;
}

/* Light theme adjustments */
.light-theme .about-cta .btn {
    box-shadow: 0 6px 15px rgba(126, 211, 33, 0.2);
    background: linear-gradient(45deg, var(--primary-green), var(--primary-purple));
    color: #fff;
}

.light-theme .about-cta .btn:hover {
    box-shadow: 0 15px 30px rgba(126, 211, 33, 0.3), 0 5px 15px rgba(156, 39, 176, 0.15);
}

/* Light Theme Styles */
.light-theme .about-section {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.light-theme .about-section .section-title {
    color: #333333;
}

.light-theme .about-section .section-description {
    color: rgba(0, 0, 0, 0.7);
}

.light-theme .lead-text {
    color: #424242;
}

.light-theme .about-section .about-description {
    color: rgba(0, 0, 0, 0.7);
}

.light-theme .feature-text h4 {
    color: #333;
}

.light-theme .feature-text p {
    color: #666;
}

.light-theme .about-feature-item {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.light-theme .about-feature-item:hover {
    background: rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(126, 211, 33, 0.2);
}

.light-theme .about-feature-item::before {
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.03), rgba(156, 39, 176, 0.03));
}

.light-theme .about-feature-item .feature-icon {
    background: rgba(126, 211, 33, 0.08);
}

.light-theme .about-feature-item:hover .feature-icon {
    background: rgba(126, 211, 33, 0.15);
}

.light-theme .about-feature-item:hover .feature-icon::before {
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.5), rgba(156, 39, 176, 0.5));
}

.light-theme .about-feature-item:hover .feature-text h4 {
    color: var(--primary-green);
}

.light-theme .about-feature-item:hover .feature-text p {
    color: #333;
}

.light-theme .about-image {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.light-theme .about-image:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.light-theme .about-section .about-description {
    color: rgba(0, 0, 0, 0.7);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .about-section {
        padding: 100px 0;
    }
    
    .about-content {
        padding-left: 20px;
    }
    
    .lead-text {
        font-size: 20px;
    }
    
    .about-image {
        height: 500px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-section .section-description {
        max-width: 90%;
    }
}

@media (max-width: 992px) {
    .about-section {
        padding: 80px 0;
    }
    
    .about-row {
        flex-direction: column;
        margin-top: 30px !important;
    }
    
    .about-content {
        padding-left: 0;
        margin-top: 40px;
        padding-top: 0;
    }
    
    .about-image-wrapper {
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
    }
    
    .experience-badge {
        right: 20px;
        bottom: 20px;
        padding: 15px 25px;
    }
    
    .about-image {
        height: 450px;
        max-width: 100%;
        margin: 0 auto;
        transform: none;
    }
    
    .about-section .section-description {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 100px 0 60px;
    }
    
    .about-section .section-title {
        font-size: 30px;
    }
    
    .about-section .section-subtitle {
        font-size: 12px;
        padding: 6px 12px;
        letter-spacing: 1.5px;
        margin-left: 15px;
    }
    
    .lead-text {
        font-size: 18px;
        padding-left: 15px;
        margin-bottom: 20px;
        margin-left: 15px;
    }
    
    .about-feature-item .feature-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
    
    .about-feature-item .feature-icon i {
        font-size: 18px;
    }
    
    .feature-text h4 {
        font-size: 15px;
    }
    
    .about-image {
        height: 400px;
        transform: rotateY(0);
    }
    
    .about-image-border {
        display: none;
    }
    
    .about-cta .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .about-features {
        margin-top: 30px;
        margin-bottom: 35px;
    }
    
    .about-section .section-description {
        margin-left: 15px;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 80px 0 40px;
    }
    
    .about-section .section-title {
        font-size: 26px;
        margin-bottom: 10px;
        margin-left: 5px;
    }
    
    .about-section .section-subtitle {
        font-size: 11px;
        padding: 5px 10px;
        margin-bottom: 10px;
        margin-left: 5px;
    }
    
    .experience-badge {
        right: 10px;
        bottom: 10px;
        padding: 12px 20px;
    }
    
    .experience-badge .years {
        font-size: 32px;
    }
    
    .experience-badge .label {
        font-size: 12px;
    }
    
    .about-feature-item {
        padding: 12px;
    }
    
    .about-feature-item .feature-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        margin-right: 15px;
    }
    
    .about-image {
        height: 320px;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .about-cta {
        text-align: center;
    }
    
    .about-cta .btn {
        padding: 10px 22px;
        font-size: 13px;
    }
    
    .feature-text p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .about-section .section-description {
        margin-left: 5px;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 60px 0 30px;
    }
    
    .about-section .section-title {
        font-size: 24px;
    }
    
    .lead-text {
        font-size: 16px;
        line-height: 1.5;
        padding-left: 12px;
    }
    
    .about-image {
        height: 280px;
    }
    
    .experience-badge {
        padding: 10px 15px;
    }
    
    .experience-badge .years {
        font-size: 28px;
    }
    
    .experience-badge .label {
        font-size: 11px;
        margin-top: 5px;
    }
    
    .about-features {
        gap: 15px;
        margin-top: 25px;
        margin-bottom: 30px;
    }
    
    .about-feature-item {
        padding: 10px;
    }
}

/* ===== THEME STYLE ADDITIONS FROM HOME.CSS ===== */
/* These styles were moved from home.css to complete the about section styles */

html.light-theme .about-section {
    background-color: #ffffff;
    color: #1a1a2e;
}

html:not(.light-theme) .about-section {
    background-color: #161623;
    color: #ffffff;
}

/* Responsive styles for small screens */
@media screen and (max-width: 768px) {
    .about-section {
        padding: 60px 0;
    }
}

.about-section .col-lg-8.text-start {
    padding-left: 25px !important;
}

@media (max-width: 768px) {
    .about-section .col-lg-8.text-start {
        padding-left: 15px !important;
    }
}

@media (max-width: 576px) {
    .about-section .col-lg-8.text-start {
        padding-left: 10px !important;
    }
}

/* Force top margin for the about-row section to prevent overlap */
.about-section > .container > .about-row {
    margin-top: 40px !important;
}

/* Header spacing */
.about-section > .container > .row:first-child {
    margin-bottom: 40px !important;
}

/* Add back the gradient text style that was removed */
.about-section .gradient-text {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    font-weight: 800;
}

/* Adjust the image position */
.about-image-wrapper {
    margin-top: 0 !important;
}

@media (max-width: 992px) {
    .about-section .section-header {
        margin-bottom: 80px !important;
    }
    
    .about-section .about-row {
        margin-top: 100px !important;
    }
} 