/* ===== CSS Variables - Deep Purple, Blue, Gold & Green Theme ===== */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --deep-purple: #5B2C6F;
    --purple-mid: #7D3C98;
    --purple-light: #9B59B6;
    --royal-blue: #2E5090;
    --sky-blue: #3498DB;
    --teal-accent: #16A085;
    --gold-accent: #D4A017;
    --gold-light: #E8B339;
    --text-dark: #1a1a1a;
    --text-light: #4a4a4a;
    --text-muted: #737373;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --border-color: #e5e5e5;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(91, 44, 111, 0.15);
    --shadow-xl: 0 20px 25px rgba(91, 44, 111, 0.2);
    --transition: all 0.3s ease;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--deep-purple) 0%, var(--royal-blue) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 85px;
    width: auto;
    mix-blend-mode: screen;
}

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

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sky-blue);
    transition: var(--transition);
}

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

.nav-link:hover,
.nav-link.active {
    color: white;
}

.contact-link {
    background: var(--sky-blue);
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 6px;
}

.contact-link:hover {
    background: var(--royal-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-link::after {
    display: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: var(--transition);
    border-radius: 3px;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(91, 44, 111, 0.7), rgba(46, 80, 144, 0.7)), url('../images/kc-skyline.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 900px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 400;
    color: var(--text-dark);
    animation: fadeInUp 1s ease 0.2s both;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: var(--deep-purple);
    animation: fadeInUp 1s ease 0.4s both;
    border: 2px solid white;
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--sky-blue);
    color: white;
    border-color: var(--sky-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* ===== Section Styles ===== */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--purple-mid) 0%, var(--sky-blue) 100%);
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== About Section ===== */
.about-section {
    background: var(--background-light);
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2rem;
}

/* ===== Origin Section ===== */
.origin-section {
    background: var(--background-white);
}

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

.origin-header {
    text-align: center;
    margin-bottom: 2rem;
}

.origin-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.highlight-text {
    background: white;
    padding: 1.5rem;
    border-left: 4px solid var(--purple-mid);
    border-radius: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.origin-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-card {
    background: url('../images/code-background.jpg');
    background-size: 125%;
    background-position: center;
    color: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    min-width: 280px;
    border: 3px solid var(--purple-mid);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at center, rgba(91, 44, 111, 0.85) 0%, rgba(46, 80, 144, 0.70) 50%, rgba(46, 80, 144, 0.75) 100%),
        linear-gradient(135deg, rgba(91, 44, 111, 0.70) 0%, rgba(46, 80, 144, 0.75) 100%);
    z-index: 0;
}

.stat-card > * {
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 5rem;
    font-weight: 700;
    font-family: 'Raleway', sans-serif;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 12px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
    color: white;
}

.stat-description {
    font-size: 0.95rem;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 12px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

/* ===== Difference Section ===== */
.difference-section {
    background: var(--background-white);
}

.differences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.difference-card {
    padding: 2.5rem;
    background: var(--background-light);
    border-radius: 12px;
    transition: var(--transition);
    border-left: 4px solid var(--purple-mid);
}

.difference-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.difference-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--purple-mid) 0%, var(--royal-blue) 50%, var(--teal-accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.difference-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.difference-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0;
}

/* ===== Team Section ===== */
.team-section {
    background: var(--background-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
}

.team-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--purple-mid);
}

.team-photo-placeholder {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--deep-purple) 0%, var(--royal-blue) 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--sky-blue);
}

.team-photo[alt="Patrick Toughey"] {
    object-fit: cover;
    object-position: 55% 10%;
}

.team-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-title {
    color: var(--purple-mid);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.team-bio {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    flex-grow: 1;
    min-height: 4.5em;
}

.team-bio-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: auto;
    margin-bottom: 1rem;
}

.team-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.btn-read-more,
.btn-linkedin {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-read-more {
    background: var(--purple-mid);
    color: white;
}

.btn-read-more:hover {
    background: var(--deep-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-email {
    background: var(--teal-accent);
    color: white;
}

.btn-email:hover {
    background: #138D75;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-linkedin {
    background: #0077B5;
    color: white;
}

.btn-linkedin:hover {
    background: #006399;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Bio Modal ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--background-white);
    margin: 3% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    box-shadow: var(--shadow-xl);
    animation: slideIn 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    color: var(--text-muted);
    float: right;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    padding: 1rem 1.5rem;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
}

.bio-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--background-light);
    border-radius: 12px 12px 0 0;
}

.bio-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--sky-blue);
    flex-shrink: 0;
}

.bio-header-text h2 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.bio-title {
    color: var(--purple-mid);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.bio-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #0077B5;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.bio-linkedin:hover {
    background: #006399;
    transform: translateY(-2px);
}

.bio-body {
    padding: 2rem;
}

.bio-body p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.bio-body p:last-child {
    margin-bottom: 0;
}

.bio-expertise {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--purple-mid);
}

.bio-expertise h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    margin-top: 1rem;
}

.bio-expertise h3:first-child {
    margin-top: 0;
}

.bio-expertise ul {
    list-style: none;
    padding-left: 0;
}

.bio-expertise li {
    color: var(--text-light);
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.bio-expertise li::before {
    content: "•";
    color: var(--teal-accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.bio-personal {
    font-style: italic;
    color: var(--text-muted);
    background: var(--background-light);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

/* ===== Contact Section ===== */
.contact-section {
    background: var(--background-white);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.contact-cta-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2.5rem 3rem;
    background: var(--background-light);
    border-radius: 12px;
    border: 2px solid var(--purple-mid);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
    width: 250px;
    height: 200px;
}

.contact-cta-button i {
    font-size: 3rem;
    color: var(--purple-mid);
}

.contact-cta-button span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-cta-button:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--sky-blue);
    background: white;
}

.contact-cta-button:hover i {
    color: var(--sky-blue);
}

.contact-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-style: italic;
    margin-top: 2rem;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, var(--deep-purple) 0%, var(--royal-blue) 100%);
    color: white;
    padding: 2rem 0 1.5rem;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 100px;
    width: auto;
    transform: scale(1.3);
    transform-origin: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-purple-light);
}

.footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    opacity: 0.9;
}

.footer-location i {
    font-size: 1.2rem;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-linkedin-link {
    color: white;
    opacity: 0.9;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.footer-linkedin-link i {
    font-size: 1.2rem;
}

.footer-linkedin-link:hover {
    opacity: 1;
    color: var(--sky-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    opacity: 0.8;
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 85px;
        flex-direction: column;
        background: linear-gradient(135deg, var(--deep-purple) 0%, var(--royal-blue) 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
    }

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

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

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .origin-content {
        grid-template-columns: 1fr;
    }

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

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

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

    .logo-img {
        height: 55px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }

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

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

    .about-grid,
    .differences-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

    .footer-logo {
        height: 50px;
    }

    .footer-info {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-actions {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .contact-cta-button {
        width: 250px;
        height: 200px;
    }

    .team-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-read-more,
    .btn-linkedin {
        width: 100%;
    }

    .logo-img {
        height: 45px;
    }

    .bio-header {
        flex-direction: column;
        text-align: center;
    }

    .bio-photo {
        width: 100px;
        height: 100px;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
}
