@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&display=swap');

/* GLOBAL LINK AND TEXT CLEANUP */
a, a:visited, a:hover, a:active {
    text-decoration: none;  /* removes underlines */
    border-bottom: none;     /* removes any bottom borders that look like lines */
}

h1, h2, h3, h4, h5, h6 {
    border-bottom: none;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Rajdhani', sans-serif;
    background: #0a0a0a;
    color: white;
}

/* MAIN */
main {
    flex: 1;
}

/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0,0,0,0.8);
    position: relative;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 40px;
    height: 40px;
}

nav a {
    color: white;
    text-decoration: none;
}

nav a:hover {
    color: #a855f7;
}

/* NAV LINKS (DESKTOP) */
.nav-links {
    display: flex;
    gap: 20px;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* HERO */
.hero {
    min-height: calc(100vh - 70px);
    background: url('images/bg.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    background: rgba(0,0,0,0.6);
    padding: 40px;
    border-radius: 15px;
}

.hero h1 {
    font-size: 60px;
}

.buttons a {
    display: inline-block;
    margin: 10px;
    padding: 12px 25px;
    background: #a855f7;
    color: white;
    border-radius: 8px;
}

/* TITLES */
.page-title {
    text-align: center;
    margin: 40px 0;
    font-size: 42px;
    color: #d0d0d0; /* middle gray between nav and content */
}

/* SECTION BOXES (Conventions Upcoming/Past) */
.section-box {
    max-width: 1200px;
    margin: 30px auto;
    padding: 25px;
    background: #111;
    border: 2px solid #7c3aed;
    border-radius: 10px;
    text-align: center;
}

.section-title {
    font-size: 36px; /* bigger */
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 20px; /* bigger */
    color: #aaa;
}

/* PROJECT GRID */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1500px;
    margin: 0 auto;
}

.project {
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.project img {
    width: 100%;
    height: 400px; /* controls the vertical height, tweak as needed */
    aspect-ratio: 3 / 4; /* ensures a vertical 3:4 ratio */
    object-fit: cover;   /* keeps image filling the box nicely without distortion */
}

.project h2 {
    padding: 15px 0 5px;
}

.project p {
    padding-bottom: 20px;
    color: #aaa;
}

.project:hover {
    transform: scale(1.04);
}

/* LINKS */
.links {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.links-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.link {
    background: #111;
    padding: 15px 30px;
    margin: 10px;
    width: 250px;
    text-align: center;
    border-radius: 10px;
    color: white;
}

.link:hover {
    background: #a855f7;
}

/* CONTACT FORM */
.contact-form {
    max-width: 700px;
    width: 90%;
    margin: 40px auto;
    padding: 40px;
    background: #111;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-sizing: border-box;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: none;
    background: #222;
    color: white;
    box-sizing: border-box;
}

.contact-form button {
    padding: 14px;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(168,85,247,0.5);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 15px;
    background: #000;
}

footer a {
    color: #a855f7;
}

/* MOBILE */
@media (max-width: 600px) {

    .hero h1 {
        font-size: 35px;
    }

    .projects {
        grid-template-columns: 1fr;
    }

    /* HAMBURGER ON */
    .hamburger {
        display: flex;
    }

    /* 🔥 IMPORTANT FIX */
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%; /* hidden by default */
        height: 100%;
        width: 250px;
        background: #111;
        flex-direction: column;
        align-items: center;
        padding-top: 80px;
        gap: 25px;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    /* ANIMATION */
    .hamburger.active div:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active div:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active div:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* FORM MOBILE */
    .contact-form {
        width: 95%;
        padding: 20px;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        padding: 10px;
        font-size: 14px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }
}

/* EMBEDDED FORMS / IFRAMES */
iframe {
    width: 100% !important;
    height: 80vh; /* 80% of the viewport height */
    max-width: 1200px;
    border: none;
    border-radius: 10px;
    background-color: #111;
    color: white;
    display: block;
    margin: 40px auto;
}

/* If iframe contents are from Google Forms or similar, you can't fully control internal colors,
   but some embeds allow adding ?theme=dark or using a dark version link in the embed code. */