:root {
    --bg-overlay: rgba(6, 12, 24, 0.55); /* subtle dark overlay */
    --card-bg: rgba(255,255,255,0.72); /* translucent card so backdrop-filter shows */
    --card-border: rgba(255,255,255,0.12);
    --accent: #26C6DA; /* chosen accent: lighter cyan/teal */
    --accent-rgb: 38,198,218; /* RGB parts for rgba helpers */
    --muted: #516b78;
    --details-start: #07202a; /* deep teal start */
    --details-end: #083245; /* deep blue end */
    --details-text: #ffffff;
}

/* Particle canvas styling */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    background-color: #000;
    /* overlay + background image */
    background-image: linear-gradient(var(--bg-overlay), rgba(0,0,0,0.25)), url(../img/dot_wave_bg.webp);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'Roboto', sans-serif;
    color: #08121a;
}

.business-card {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(2,8,20,0.6), 0 0 0 4px rgba(var(--accent-rgb),0.03);
    background-color: var(--card-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.business-card h1,
.business-card h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #04121a;
}

.business-card h3 {
    margin: 0;
    color: var(--muted);
}

.picture-container {
    background-color: transparent;
    text-align: center;
    padding: 20px;
    position: relative;
}

.picture-container img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(var(--accent-rgb),0.18);
}

.details-container {
    background: linear-gradient(135deg, var(--details-start), var(--details-end));
    padding: 20px;
    text-align: center;
    color: var(--details-text);
}

.details-container p {
    margin: 5px 0;
    font-size: 1rem;
    color: var(--details-text);
}

.details-container a {
    margin: 5px 0;
    font-size: 1rem;
    color: var(--accent);
    text-decoration: none;
}

.details-container a:link,
.details-container a:visited {
    text-decoration: none;
}

.details-container a:active {
    opacity: 0.9;
}

.details-container a:hover {
    color: #e6ffff;
    text-decoration: underline;
}

/* small icon color */
.details-container i {
    /* icons show accent by default, switch to light on hover/focus */
    color: var(--accent);
    margin-right: 8px;
    transition: color 180ms ease, transform 180ms ease;
}

/* Switch icons to light color when hovering or focusing the link/row */
.details-container a:hover i,
.details-container a:focus i,
.details-container p:hover i {
    color: rgba(255,255,255,0.95);
    transform: translateY(-1px);
}

/* Name underline and focus styles using accent */
.picture-container h1::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: var(--accent);
    margin: 10px auto 0;
    border-radius: 2px;
    opacity: 0.95;
}

/* Focus and accessibility helpers */
.details-container a:focus {
    outline: 3px solid rgba(var(--accent-rgb),0.18);
    outline-offset: 2px;
    border-radius: 4px;
}

.business-card:focus-within {
    box-shadow: 0 10px 30px rgba(2,8,20,0.6), 0 0 0 8px rgba(var(--accent-rgb),0.10);
}

/* Media Queries for Responsive Design */

/* Small phones (up to 320px) */
@media screen and (max-width: 320px) {
    .business-card h2 {
        font-size: 1.2rem;
    }

    .business-card h3 {
        font-size: 0.9rem;
    }

    .picture-container {
        padding: 15px;
    }

    .picture-container img {
        width: 80px;
        height: 80px;
    }

    .details-container {
        padding: 15px;
    }

    .details-container p, 
    .details-container a {
        font-size: 0.9rem;
    }
}

/* Medium phones (321px - 480px) */
@media screen and (min-width: 321px) and (max-width: 480px) {
    .business-card h2 {
        font-size: 1.3rem;
    }

    .business-card h3 {
        font-size: 1rem;
    }

    .picture-container {
        padding: 18px;
    }

    .picture-container img {
        width: 90px;
        height: 90px;
    }
}

/* Tablets and larger phones (481px - 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .business-card {
        max-width: 90%;
    }
}

/* Landscape orientation adjustments */
@media screen and (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 10px;
    }

    .business-card {
        flex-direction: row;
        max-width: 90%;
    }

    .picture-container {
        flex: 1;
        padding: 15px;
    }

    .details-container {
        flex: 2;
        padding: 15px;
    }

    .picture-container img {
        width: 70px;
        height: 70px;
    }
}