﻿/* style.css – All styles for RIPS Lahore website */

:root {
    --primary: #1a4b8c;
    --secondary: #e63946;
    --accent: #2a9d8f;
    --green: #2e8b57;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Header */
header {
    background-color: white;
    color: var(--dark);
    padding: 5px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-scrolled {
    padding: 0;
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

    .logo img {
        max-height: 60px;
        width: auto;
    }

    .logo h1 {
        font-size: 1.8rem;
        margin-left: 10px;
        color: var(--primary);
        background: linear-gradient(to right, var(--primary), var(--green));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

nav ul {
    display: flex;
    list-style: none;
}

    nav ul li {
        margin-left: 20px;
    }

        nav ul li a {
            color: var(--green);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
            padding: 5px 10px;
            border-radius: 4px;
            position: relative;
        }

            nav ul li a::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 0;
                height: 2px;
                background-color: var(--primary);
                transition: width 0.3s ease;
            }

            nav ul li a:hover {
                color: var(--primary);
            }

                nav ul li a:hover::after {
                    width: 100%;
                }

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--green);
}

/* Hero */
.hero {
    background: linear-gradient(rgba(26,75,140,0.8), rgba(26,75,140,0.9)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100px;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M0,0 Q500,80 1000,0 L1000,100 L0,100 Z" fill="white"/></svg>');
        background-size: 100% 100px;
        background-repeat: no-repeat;
        background-position: bottom;
    }

    .hero h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }

    .hero p {
        font-size: 1.2rem;
        max-width: 800px;
        margin: 0 auto 30px;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    }

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .btn::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;
        z-index: -1;
    }

    .btn:hover::before {
        left: 100%;
    }

    .btn:hover {
        background-color: #c1121f;
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    margin-left: 10px;
}

    .btn-outline:hover {
        background-color: white;
        color: var(--primary);
    }

/* Sections */
section {
    padding: 40px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

    section.visible {
        opacity: 1;
        transform: translateY(0);
    }

.section-title {
    text-align: center;
    margin-bottom: 20px;
}

    .section-title h2 {
        font-size: 2.2rem;
        color: var(--primary);
        position: relative;
        display: inline-block;
        padding-bottom: 10px;
    }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background-color: var(--green);
        }

    .section-title p {
        color: var(--gray);
        max-width: 700px;
        margin: 15px auto 0;
    }

/* About */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

    .about-image:hover {
        transform: perspective(1000px) rotateY(0);
    }

    .about-image img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.5s ease;
    }

    .about-image:hover img {
        transform: scale(1.05);
    }

/* Programs */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

    .program-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 0;
        background: linear-gradient(to bottom, var(--green), var(--primary));
        transition: height 0.4s ease;
        z-index: -1;
    }

    .program-card:hover::before {
        height: 100%;
    }

    .program-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        color: white;
    }

        .program-card:hover .program-header {
            background-color: transparent;
        }

        .program-card:hover .program-body li::before {
            color: white;
        }

.program-header {
    background-color: var(--green);
    color: white;
    padding: 20px;
    transition: background-color 0.4s ease;
}

    .program-header h3 {
        font-size: 1.4rem;
    }

.program-body {
    padding: 20px;
}

    .program-body ul {
        list-style: none;
    }

    .program-body li {
        margin-bottom: 10px;
        padding-left: 20px;
        position: relative;
    }

        .program-body li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--green);
            font-weight: bold;
            transition: color 0.4s ease;
        }

/* Facilities */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.facility-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

    .facility-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(46,139,87,0.1), transparent);
        transition: left 0.5s;
    }

    .facility-card:hover::before {
        left: 100%;
    }

    .facility-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

.facility-icon {
    font-size: 2.5rem;
    color: var(--green);
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.facility-card:hover .facility-icon {
    color: var(--primary);
    transform: scale(1.2) rotate(5deg);
}

/* Directors */
.directors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.director-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

    .director-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(46,139,87,0.1) 0%, transparent 70%);
        transform: scale(0);
        transition: transform 0.5s ease;
    }

    .director-card:hover::before {
        transform: scale(1);
    }

    .director-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

.director-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    transition: all 0.4s ease;
}

.director-card:hover .director-img {
    transform: scale(1.1) rotate(5deg);
}

.director-card h3 {
    color: var(--primary);
    margin-bottom: 5px;
}

.director-card .position {
    color: var(--green);
    font-weight: 600;
    margin-bottom: 15px;
}

/* Mission */
.mission-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mission-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

    .mission-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(to right, var(--primary), var(--green));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.4s ease;
    }

    .mission-card:hover::after {
        transform: scaleX(1);
    }

    .mission-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

.mission-icon {
    font-size: 2.5rem;
    color: var(--green);
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.mission-card:hover .mission-icon {
    color: var(--primary);
    transform: scale(1.2);
}

/* Why RIPS */
.why-rips {
    background-color: var(--primary);
    color: white;
    position: relative;
    overflow: hidden;
}

    .why-rips::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100px;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M0,0 Q500,80 1000,0 L1000,100 L0,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
        background-size: 100% 100px;
        background-repeat: no-repeat;
        background-position: top;
    }

    .why-rips .section-title h2 {
        color: white;
    }

        .why-rips .section-title h2::after {
            background-color: var(--green);
        }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    transition: all 0.4s ease;
    border-radius: 10px;
}

    .feature-item:hover {
        background-color: rgba(255,255,255,0.1);
        transform: translateY(-10px);
    }

.feature-icon {
    font-size: 2rem;
    color: var(--green);
    margin-bottom: 15px;
    transition: all 0.4s ease;
}

.feature-item:hover .feature-icon {
    color: white;
    transform: scale(1.2) rotate(10deg);
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

    .contact-item:hover {
        background-color: rgba(46,139,87,0.1);
        transform: translateX(10px);
    }

.contact-icon {
    font-size: 1.5rem;
    color: var(--green);
    margin-top: 5px;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    color: var(--primary);
    transform: scale(1.2);
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

    .contact-form:hover {
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

.form-group {
    margin-bottom: 20px;
    position: relative;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
    }

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: var(--green);
        box-shadow: 0 0 0 3px rgba(46,139,87,0.1);
        outline: none;
    }

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 20px;
    position: relative;
}

    footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(to right, var(--primary), var(--green));
    }

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--green);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-column ul {
    list-style: none;
}

    .footer-column ul li {
        margin-bottom: 10px;
    }

        .footer-column ul li a {
            color: #adb5bd;
            text-decoration: none;
            transition: color 0.3s;
            position: relative;
        }

            .footer-column ul li a::before {
                content: '›';
                position: absolute;
                left: -15px;
                opacity: 0;
                transition: all 0.3s ease;
            }

            .footer-column ul li a:hover {
                color: var(--green);
                padding-left: 15px;
            }

                .footer-column ul li a:hover::before {
                    opacity: 1;
                    left: 0;
                }

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: rgba(255,255,255,0.1);
        border-radius: 50%;
        color: white;
        transition: all 0.3s;
    }

        .social-links a:hover {
            background-color: var(--green);
            transform: translateY(-3px);
        }

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .about-text, .about-image {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

        nav ul.show {
            display: flex;
        }

        nav ul li {
            margin: 10px 0;
        }

    .mobile-menu {
        display: block;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section {
        padding: 60px 0;
    }
}
