/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ISC2 Color Palette - Colorful Version */
:root {
    --primary-color: #0066cc;        /* Blue */
    --secondary-color: #1e88e5;      /* Lighter Blue */
    --accent-color: #ff6600;         /* Orange */
    --accent-secondary: #ff8c42;     /* Lighter Orange */
    --success-color: #28a745;        /* Green */
    --success-light: #4caf50;        /* Lighter Green */
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --background-light: #f8f9fa;
    --background-gradient: linear-gradient(135deg, #e3f2fd 0%, #fff3e0 50%, #e8f5e9 100%);
    --border-color: #e9ecef;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-color: 0 4px 15px rgba(0, 102, 204, 0.15);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--success-color));
    border-radius: 2px;
}

/* Header and Navigation */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.chapter-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, #e3f2fd 0%, #fff3e0 50%, #e8f5e9 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 102, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(40, 167, 69, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    margin-right: 2rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--background-light);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-color);
}

/* Different color for each about card */
.about-card:nth-child(1) {
    border-top-color: var(--primary-color);
}

.about-card:nth-child(1) .card-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.about-card:nth-child(2) {
    border-top-color: var(--accent-color);
}

.about-card:nth-child(2) .card-icon {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
}

.about-card:nth-child(3) {
    border-top-color: var(--success-color);
}

.about-card:nth-child(3) .card-icon {
    background: linear-gradient(135deg, var(--success-color), var(--success-light));
}

.card-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.about-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.objectives {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.objectives h3 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.objective-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05), rgba(255, 255, 255, 0.8));
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.objective-item:hover {
    transform: translateX(5px);
}

.objective-item:nth-child(1) i {
    color: var(--primary-color);
}

.objective-item:nth-child(2) i {
    color: var(--accent-color);
}

.objective-item:nth-child(3) i {
    color: var(--success-color);
}

.objective-item:nth-child(4) i {
    color: var(--secondary-color);
}

.objective-item i {
    font-size: 2rem;
    margin-top: 0.5rem;
}

.objective-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Events Section */
.events {
    padding: 80px 0;
    background-color: var(--white);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.event-card {
    display: flex;
    background-color: var(--background-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-date {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 100px;
}

.event-date .month {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
}

.event-content {
    padding: 1.5rem;
    flex: 1;
}

.event-content h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.event-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.event-details i {
    color: var(--accent-color);
}

/* Membership Section */
.membership {
    padding: 80px 0;
    background: linear-gradient(135deg, #e8f5e9 0%, #e3f2fd 100%);
}

.membership-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.membership-benefits h3 {
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

.membership-join h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    transition: background 0.3s ease;
}

.benefits-list li:hover {
    background: rgba(255, 255, 255, 0.9);
}

.benefits-list i {
    font-size: 1.2rem;
    min-width: 24px;
}

/* Alternate colors for benefits */
.benefits-list li:nth-child(odd) i {
    color: var(--success-color);
}

.benefits-list li:nth-child(even) i {
    color: var(--primary-color);
}

.benefits-list li:nth-child(3n) i {
    color: var(--accent-color);
}

.join-steps {
    margin: 2rem 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step:nth-child(1) .step-number {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.step:nth-child(2) .step-number {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
}

.step:nth-child(3) .step-number {
    background: linear-gradient(135deg, var(--success-color), var(--success-light));
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Leadership Section */
.leadership {
    padding: 80px 0;
    background: linear-gradient(135deg, #fff3e0 0%, #e3f2fd 100%);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.leader-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.leader-card:nth-child(1) {
    border-top-color: var(--primary-color);
}

.leader-card:nth-child(2) {
    border-top-color: var(--accent-color);
}

.leader-card:nth-child(3) {
    border-top-color: var(--success-color);
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-color);
}

.leader-card:hover {
    transform: translateY(-5px);
}

.leader-image {
    margin-bottom: 1.5rem;
}

.leader-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.leader-info h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.leader-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.leader-description {
    color: var(--text-light);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--background-light);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-details {
    margin: 2rem 0;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #e8f5e9 0%, #fff3e0 50%, #e3f2fd 100%);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-color);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-details {
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05), rgba(255, 255, 255, 0.8));
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item:nth-child(1) i {
    color: var(--primary-color);
}

.contact-item:nth-child(2) i {
    color: var(--accent-color);
}

.contact-item:nth-child(3) i {
    color: var(--success-color);
}

.contact-item i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.social-links {
    margin-top: 2rem;
    text-align: center;
}

.social-links h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link:nth-child(1) {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.social-link:nth-child(2) {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
}

.social-link:nth-child(3) {
    background: linear-gradient(135deg, var(--success-color), var(--success-light));
}

.social-link {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Contact Form */

/* Contact Form */
.form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form input,
.form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 60px;
    }

    .hero-content {
        margin-right: 0;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .membership-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-grid,
    .events-grid,
    .leadership-grid {
        grid-template-columns: 1fr;
    }

    .objectives-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        min-width: auto;
        padding: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-card,
    .form {
        padding: 1.5rem;
    }

    .objectives {
        padding: 2rem;
    }
}

/* Placeholder for missing images */
.logo,
.hero-img,
.leader-img {
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Only show placeholder for hero and leader images when missing */
.hero-img::before {
    content: "Cybersecurity Image";
}

.leader-img::before {
    content: "Profile Photo";
}