/*
Theme Name: Go Digitally Premium
Theme URI: https://godigitally.ca
Author: Go Digitally
Author URI: https://godigitally.ca
Description: A premium, dark-mode, responsive theme for Go Digitally.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: godigitally
*/

:root {
    /* Color Palette - Deep Premium Blue & Neon Accents */
    --bg-dark: #0a0e17;
    --bg-card: #151a25;
    --primary: #00f2ff;
    /* Cyan Neon */
    --secondary: #7000ff;
    /* Electric Violet */
    --text-main: #ffffff;
    --text-muted: #a0a8b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Utilities --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.3);
}

.section-padding {
    padding: 50px 0;
}

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

.mb-2 {
    margin-bottom: 2rem;
}

/* --- Header --- */
.site-header {
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    padding: 15px 20px;
    height: 80px;
    /* Fixed height for stability */
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-family: 'Outfit', sans-serif;
}

.site-title a {
    text-decoration: none;
    color: white;
}

.site-title span {
    color: var(--primary);
}

.main-navigation {
    display: flex;
    align-items: center;
}

/* Desktop Menu Styles */
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.menu li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.menu li a:hover,
.menu li a:focus {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    color: #00f2ff !important;
    /* Neon Cyan Hex - Force Visibility */
    width: 50px;
    height: 50px;
    display: none;
    /* Hidden by default on desktop */
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    z-index: 1001;
    background: transparent;
    border: none;
}

.menu-toggle svg {
    pointer-events: none;
    /* Let clicks pass to button */
}

/* --- Hero Section & Advanced Animations --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    /* Changed to left for split layout */
    padding-top: var(--header-height);
    background: radial-gradient(circle at 80% 20%, rgba(112, 0, 255, 0.15), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(0, 242, 255, 0.1), transparent 40%),
        var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    width: 100%;
}

.hero-text {
    flex: 1;
    z-index: 2;
}

.hero-visual {
    flex: 1;
    position: relative;
    z-index: 1;
    perspective: 1000px;
}

.hero-image {
    width: 120%;
    /* Slightly oversize for spill-over effect */
    max-width: 800px;
    transform-style: preserve-3d;
    animation: float-3d 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 242, 255, 0.3));
    border-radius: 20px;
    /* Masking to fade edges slightly if needed, but let's keep it sharp for the 'portal' look */
}

@keyframes float-3d {
    0% {
        transform: translateY(0) rotateX(2deg) rotateY(-2deg);
    }

    50% {
        transform: translateY(-20px) rotateX(-2deg) rotateY(2deg);
    }

    100% {
        transform: translateY(0) rotateX(2deg) rotateY(-2deg);
    }
}

.glow-text {
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5), 0 0 20px rgba(0, 242, 255, 0.3);
}

.typewriter {
    display: inline-block;
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    overflow: hidden;
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 15px;
    background: linear-gradient(135deg, white 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Services & Features Updates --- */
.service-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(0, 242, 255, 0.05));
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
}

@media (max-width: 992px) {
    .hero-content-wrapper {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-image {
        width: 100%;
        margin-bottom: 30px;
    }
}


/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Premium Leadership Section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 20px;
}

.team-card {
    position: relative;
    background: rgba(20, 25, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.05), rgba(112, 0, 255, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 242, 255, 0.15);
}

.team-card:hover::before {
    opacity: 1;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #2a3040, #000);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    border: 2px solid var(--primary);
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}

.team-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.team-role {
    font-size: 0.95rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* --- Portfolio --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    background: var(--bg-card);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* --- Footer --- */
.site-footer {
    background: var(--bg-card);
    padding: 60px 0 20px;
    margin-top: 50px;
    border-top: 1px solid var(--glass-border);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Responsive --- */
/* --- Responsive --- */
/* --- Responsive (v7 Stabilized) --- */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex !important;
        /* Force Flex */
    }

    /* Mobile Menu Dropdown - ABSOLUTE POSITIONING to prevent 'flying' */
    .menu-primary-menu-container {
        position: absolute;
        top: 80px;
        /* Matches header height */
        left: 0;
        width: 100%;
        background: #000;
        border-bottom: 1px solid var(--primary);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 9998;
        /* Below header, above content */
        visibility: hidden;
    }

    .main-navigation.active .menu-primary-menu-container {
        transform: translateY(0);
        visibility: visible;
    }

    .menu {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
        /* Adjusted for better fit */
    }

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

    .team-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-card {
        padding: 20px;
    }

    .hero-image {
        max-width: 90%;
        margin: 0 auto 30px auto;
        /* Centered horizontally */
        display: block;
    }

    .container {
        padding: 0 15px;
    }

    .site-header .container {
        padding: 0 15px;
    }

    .section-padding {
        padding: 40px 0;
        /* Tighter vertical spacing on mobile */
    }
}