/* Professional Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    background: linear-gradient(135deg, #226ecc 0%, #1e5bb8 50%, #1a4fa0 100%);
    overflow: hidden;
}

/* Subtle Pattern Overlay */
.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 25% 25%,
            rgba(255, 255, 255, 0.1) 2px,
            transparent 2px),
        radial-gradient(circle at 75% 75%,
            rgba(255, 255, 255, 0.1) 2px,
            transparent 2px);
    background-size: 60px 60px;
    animation: patternMove 30s linear infinite;
    opacity: 0.5;
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

/* Image Carousel with Professional Overlay */
.image-carousel {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 2s ease-in-out;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6) contrast(1.1);
}

.carousel-slide.active {
    opacity: 0.8;
}

.carousel-slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(34, 110, 204, 0.7),
            rgba(26, 79, 160, 0.6));
    z-index: 1;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-text {
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 35px;
    opacity: 0.95;
    line-height: 1.7;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 160px;
}

.btn-primary {
    background: white;
    color: #226ecc;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
    background: #f8f9fa;
}

.btn-secondary:hover {
    background: white;
    color: #226ecc;
}

/* Statistics Section */
.stats-section {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 60px;
    z-index: 200;
    animation: fadeInUp 1s ease-out 1s both;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 200;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dot.active {
    background: white;
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 95%;
    margin: 0 auto;
    position: relative;
    margin-top: 30px;
}

.card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 32px rgba(31, 38, 135, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 300% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.15),
        0 16px 48px rgba(31, 38, 135, 0.2);
}

.card-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    padding: 30px 25px 20px 25px;
    position: relative;
}

.img {
    width: 130px;
    height: 180px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 3px;
    flex-shrink: 0;
}

.img::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    z-index: -1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 17px;
    background: white;
    transition: transform 0.3s ease;
}

.card:hover .img img {
    transform: scale(1.1);
}

.card-desc {
    flex: 1;
    padding-top: 5px;
}

.card-name {
    font-weight: 800;
    font-size: 1.6rem;
    line-height: 1.3;
    color: #2d3748;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-desc p:last-child {
    color: #718096;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.card-title {
    background: linear-gradient(135deg, #4c51bf 0%, #667eea 50%, #764ba2 100%);
    color: white;
    padding: 25px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.card-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.card:hover .card-title::before {
    left: 100%;
}

/* Academic badge */
/* .card::after {
    content: '🡢';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.card:hover::after {
    opacity: 1;
    transform: rotate(-15deg) scale(1.2);
} */

/* Loading animation */
.card {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.card:nth-child(1) {
    animation-delay: 0.3s;
}

.card:nth-child(2) {
    animation-delay: 0.6s;
}

.card:nth-child(3) {
    animation-delay: 0.9s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*******************************
    About Us Section
*******************************/
.twas-modern-about {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 50px 0;
    overflow: hidden;
    position: relative;
}

.twas-modern-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%233b82f6" stop-opacity="0.1"/><stop offset="100%" stop-color="%233b82f6" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="300" fill="url(%23a)"/><circle cx="800" cy="800" r="400" fill="url(%23a)"/></svg>') no-repeat;
    background-size: cover;
    opacity: 0.7;
    z-index: 0;
}

.twas-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    position: relative;
    z-index: 1;
}

.twas-section-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.twas-main-title {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, #1e40af, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0px;
    letter-spacing: -0.02em;
}

.twas-subtitle {
    font-size: 1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.twas-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.twas-stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-width: 120px;
}

.twas-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.twas-stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 8px;
}

.twas-content-sections {
    display: grid;
    gap: 20px;
    margin-top: 10px;
}

.twas-content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
}

.twas-content-row.reverse {
    direction: rtl;
}

.twas-content-row.reverse>* {
    direction: ltr;
}

.twas-image-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(5deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.twas-content-row.reverse .twas-image-container {
    transform: perspective(1000px) rotateY(-5deg);
}

.twas-image-container:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.more-btn{
    border: 1px solid #3b82f6;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    display: inline-block;
}

.more-btn:hover{
    background-color: #3b82f6;
    transform: translateY(-5px);
    color: #fff;
}

.twas-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.twas-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(30, 64, 175, 0.2));
    pointer-events: none;
}

.twas-content-text {
    padding: 40px 0;
}

.twas-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    line-height: 1.2;
    position: relative;
}

.twas-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border-radius: 2px;
}

.twas-section-description {
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 32px;
}

.twas-highlight-text {
    color: #3b82f6;
    font-weight: 600;
}

.twas-features-list {
    list-style: none;
    padding: 0;
}

.twas-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.twas-feature-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(8px);
}

.twas-feature-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.twas-feature-text {
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
}

.twas-cta-section {
    text-align: center;
    margin-top: 50px;
    padding: 60px 40px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 32px;
    color: white;
    position: relative;
    overflow: hidden;
}

.twas-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1.5" fill="white" opacity="0.1"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.twas-cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.twas-cta-description {
    font-size: 0.9rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.linked-btn{
    text-decoration: none;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 10px;
    z-index: 10;
    padding: 10px;
    display: inline-block;
    transition: all 0.3s ease-in-out;
    font-weight: 600;
}

.linked-btn:hover{
    transform: translateY(-5px);
    background: #fff;
    color: #1e40af;
}

/* Scroll Animations */
.twas-fade-in {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.twas-fade-in.twas-visible {
    opacity: 1;
    transform: translateY(0);
}

.twas-slide-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.twas-slide-left.twas-visible {
    opacity: 1;
    transform: translateX(0);
}

.twas-slide-right {
    opacity: 0;
    transform: translateX(80px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.twas-slide-right.twas-visible {
    opacity: 1;
    transform: translateX(0);
}

.twas-scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.twas-scale-in.twas-visible {
    opacity: 1;
    transform: scale(1);
}

.twas-stagger-animation {
    transition-delay: 0.1s;
}

.twas-stagger-animation:nth-child(2) {
    transition-delay: 0.2s;
}

.twas-stagger-animation:nth-child(3) {
    transition-delay: 0.3s;
}

.twas-stagger-animation:nth-child(4) {
    transition-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin-bottom: 15px;
    }

    .stats-section {
        left: 15%;
    }
    
    .twas-content-row {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .twas-image-container {
        transform: none;
        max-width: 500px;
        margin: 0 auto;
    }

    .twas-content-row.reverse .twas-image-container {
        transform: none;
    }
    .cards {
        grid-template-columns: repeat(2, 1fr);
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .twas-modern-about {
        padding: 60px 0;
    }

    .twas-container {
        padding: 0 15px;
    }

    .twas-hero-stats {
        gap: 20px;
    }

    .twas-stat {
        padding: 15px;
        min-width: 100px;
    }

    .twas-stat-number {
        font-size: 2rem;
    }

    .twas-content-sections {
        gap: 80px;
        margin-top: 60px;
    }

    .twas-section-title {
        font-size: 2rem;
    }

    .twas-image {
        height: 300px;
    }

    .twas-cta-section {
        margin-top: 80px;
        padding: 40px 20px;
    }

    .twas-cta-title {
        font-size: 2rem;
    }

    /* Reduce animation intensity on mobile */
    .twas-fade-in,
    .twas-slide-left,
    .twas-slide-right {
        transform: translateY(30px);
    }

    .twas-slide-left {
        transform: translateX(-40px);
    }

    .twas-slide-right {
        transform: translateX(40px);
    }
}

/* Responsive Design */
@media (max-width: 968px) {

    .hero-title {
        font-size: 3rem;
    }

    .stats-section {
        gap: 40px;
    }
}

@media (max-width: 800px) {

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .stats-section {
        gap: 10px;
    }

    .stat-number{
        font-size: 2rem;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .card-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .img {
        width: 100px;
        height: 100px;
    }

    .card-name {
        font-size: 1.4rem;
    }

    .card-title {
        padding: 20px;
        font-size: 0.9rem;
    }

}

@media (max-width: 500px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-text{
        margin-top: -80px;
    }

    .stats-section {
        left: 0%;
        gap: 10px;
    }

    .stat-number {
        font-size: 1.5rem;
    }
    .stat-label{
        font-size: 12px;
    }
}

.twas-casarep-section{
    width: 80%;
}
    /* Modern Design for the new section */
    .about-twas-casarep-section {
        background-color: #f9f9f9; /* Light background for the section */
        padding: 40px 20px;
        border-radius: 10px;
        margin: 20px auto;
        max-width: 1200px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        line-height: 1.8;
        color: #333;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .about-twas-casarep-content {
        display: flex;
        flex-direction: column;
        gap: 15px; /* Space between paragraphs */
    }

    .about-twas-casarep-title {
        font-size: 2.5em;
        color: #0056b3; /* A strong, scientific blue */
        text-align: center;
        margin-bottom: 25px;
        font-weight: 700;
        position: relative;
        padding-bottom: 10px;
    }

    .about-twas-casarep-title::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background-color: #007bff; /* A lighter blue for the underline */
        border-radius: 2px;
    }

    .about-twas-casarep-paragraph {
        font-size: 1.1em;
        text-align: justify;
        color: #555;
    }

    .highlight-text-modern {
        font-weight: 600;
        color: #007bff; /* Emphasize highlighted text with the blue */
    }

    /* Responsive adjustments for the new section */
    @media (max-width: 768px) {
        .about-twas-casarep-section {
            padding: 30px 15px;
            margin: 15px auto;
        }

        .about-twas-casarep-title {
            font-size: 2em;
            margin-bottom: 20px;
        }

        .about-twas-casarep-paragraph {
            font-size: 1em;
        }
    }

    @media (max-width: 480px) {
        .about-twas-casarep-section {
            padding: 20px 10px;
            margin: 10px auto;
        }

        .about-twas-casarep-title {
            font-size: 1.8em;
            margin-bottom: 15px;
        }
    }
