/* CrispRain - Grayscale Bootstrap Theme */

:root {
    --primary: #64a19d;
    --secondary: #7464a1;
    --black: #000000;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-600: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--black);
    background-color: var(--white);
}

/* Navigation */
#mainNav {
    min-height: 3.5rem;
    background-color: transparent;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    transition: background-color 0.3s ease-in-out;
    padding: 1.5rem 0;
}

#mainNav.navbar-scrolled {
    background-color: var(--black);
    padding: 0.5rem 0;
}

#mainNav .navbar-brand {
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.0625em;
    text-decoration: none;
    font-size: 1.1rem;
}

#mainNav .navbar-nav {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

#mainNav .nav-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.0625em;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0.75rem 0;
    border-bottom: 0.125rem solid transparent;
    transition: all 0.3s;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.navbar-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

/* Masthead */
.masthead {
    position: relative;
    width: 100%;
    padding: 15rem 0;
    min-height: 35rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 75%, #000 100%),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%23222" width="100" height="100"/><circle cx="20" cy="20" r="1" fill="%23333"/><circle cx="60" cy="40" r="1" fill="%23333"/><circle cx="40" cy="70" r="1" fill="%23333"/><circle cx="80" cy="80" r="1" fill="%23333"/></svg>');
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
    color: var(--white);
}

.masthead h1 {
    font-size: 2.5rem;
    line-height: 2.5rem;
    letter-spacing: 0.8rem;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.masthead h2 {
    font-size: 1rem;
    max-width: 20rem;
    color: rgba(255, 255, 255, 0.5);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
}

.h-100 {
    height: 100%;
}

.align-items-center {
    align-items: center;
}

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

/* About Section */
.about-section {
    padding-top: 10rem;
    background: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.9) 75%, rgba(0, 0, 0, 0.8) 100%);
    color: var(--white);
    padding-bottom: 10rem;
}

.about-section p {
    margin-bottom: 5rem;
}

.about-section img {
    max-width: 100%;
    height: auto;
}

/* Projects Section */
.projects-section {
    padding: 10rem 0;
    background-color: var(--gray-100);
}

.project-row {
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.project-row:nth-child(even) {
    flex-direction: row-reverse;
}

.project-img {
    flex: 1;
}

.project-img img {
    width: 100%;
    height: auto;
}

.project-text {
    flex: 1;
    padding: 5rem;
    font-size: 90%;
}

.project-featured-text {
    padding: 2rem;
    border-left: 0.5rem solid var(--primary);
}

.projects-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.projects-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.projects-section .text-black-50 {
    color: rgba(0, 0, 0, 0.5);
}

/* Simple Project Cards for CrispRain */
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 3rem 0;
}

.project-card {
    background: white;
    padding: 3rem 2rem;
    border: 0;
    border-bottom: 0.25rem solid var(--primary);
    transition: transform 0.3s ease;
}

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

.project-card a {
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.project-card a:hover {
    color: var(--primary);
}

/* Signup Section */
.signup-section {
    padding: 10rem 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 75%, #000 100%),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%23111" width="100" height="100"/><path d="M10,50 Q30,20 50,50 T90,50" stroke="%23222" fill="none" stroke-width="2"/></svg>');
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
    color: var(--white);
}

.signup-section input {
    box-shadow: 0 0.1875rem 0.1875rem 0 rgba(0, 0, 0, 0.1);
    padding: 1.25rem 2rem;
    height: auto;
    font-size: 80%;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    border: 0;
}

.signup-section .btn {
    box-shadow: 0 0.1875rem 0.1875rem 0 rgba(0, 0, 0, 0.1);
    padding: 1.25rem 2rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    font-size: 80%;
}

/* Contact Section */
.contact-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: var(--black);
    color: var(--white);
}

.contact-section .card {
    border: 0;
    border-bottom: 0.25rem solid var(--primary);
    background-color: transparent;
    color: var(--white);
    padding: 2rem;
}

.contact-section .card h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    margin-bottom: 1rem;
}

.contact-section .card hr {
    border-color: var(--primary);
    border-width: 0.25rem;
    width: 3rem;
    margin: 1.5rem 0;
}

.contact-section .card .small {
    font-size: 0.875rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    width: 3rem;
    border-radius: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

/* Footer */
.footer {
    padding: 5rem 0;
    background-color: var(--black);
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-size: 0.875rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 0;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background-color: #4a7d7a;
    border-color: #4a7d7a;
}

/* Content Section */
.content-section {
    padding: 10rem 0;
}

.content-section.bg-light {
    background-color: var(--gray-100);
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* Rain Animation */
.rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.rain-drop {
    position: absolute;
    top: -20px;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, rgba(100, 161, 157, 0.4));
    animation: fall linear infinite;
}

.rain-drop.heavy {
    width: 3px;
    background: linear-gradient(to bottom, transparent, rgba(100, 161, 157, 0.6));
}

@keyframes fall {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Responsive */
@media (min-width: 768px) {
    .masthead h1 {
        font-size: 4rem;
        line-height: 4rem;
    }

    .masthead h2 {
        font-size: 1.25rem;
        max-width: 30rem;
    }
}

@media (min-width: 992px) {
    #mainNav {
        padding: 1.5rem 0;
    }

    #mainNav.navbar-scrolled {
        padding: 0.5rem 0;
    }

    .masthead {
        height: 100vh;
        padding: 0;
    }

    .masthead h1 {
        font-size: 6.5rem;
        line-height: 6.5rem;
        letter-spacing: 0.8rem;
    }

    .masthead h2 {
        max-width: 30rem;
    }
}

@media (max-width: 768px) {
    .project-row {
        flex-direction: column !important;
    }

    .project-text {
        padding: 3rem;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        padding: 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}
