/* =============================================================================
   McCan Dark Theme - Main Stylesheet
   ============================================================================= */

/* CSS Variables */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --accent-color: #ff6b6b;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #404040;
    --transition: all 0.3s ease;
}

/* Import demo-like fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Source+Sans+3:wght@300;400;600&display=swap');

:root {
    --heading-font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --body-font: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* =============================================================================
   Reset & Base Styles
   ============================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--primary-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.dark-mode {
    filter: invert(1) hue-rotate(180deg);
}

/* Links */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #ff8787;
    text-decoration: none;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

/* Paragraphs & Text */
p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =============================================================================
   Header & Navigation
   ============================================================================= */

.site-header {
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.main-navigation {
    padding: 1.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
}

.site-logo-text:hover {
    color: var(--accent-color);
}

.custom-logo {
    max-height: 100px;
    width: auto;
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    transition: var(--transition);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.nav-menu > li > a {
    display: block;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hamburger-icon .line {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active .line:nth-child(1) {
    transform: rotate(45deg) translate(12px, 10px);
}

.menu-toggle.active .line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(10px, -10px);
}

/* =============================================================================
   Page Layout
   ============================================================================= */

.front-page-main {
    padding: 0;
}

.page-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.sidebar-info {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-content {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

/* =============================================================================
   Hero Section
   ============================================================================= */

.hero-section {
    padding: 2rem 0;
    background-color: transparent;
}

.hero-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero-right {
    background-color: var(--primary-color);
    color: var(--text-primary);
    padding: 72px 96px;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.hero-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.7;
}

/* =============================================================================
   Call-to-Action Buttons
   ============================================================================= */

.cta-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.cta-button.primary {
    background-color: var(--accent-color);
    color: white;
}

.cta-button.primary:hover {
    background-color: #ff8787;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.cta-button.secondary {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: transparent;
}

.cta-button.secondary:hover {
    background-color: var(--accent-color);
    color: white;
}

/* =============================================================================
   About Section
   ============================================================================= */

.about-section {
    padding: 6rem 2rem;
    background-color: var(--primary-color);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.info-group h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.info-group ul {
    list-style: none;
}

.info-group li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.info-group li:last-child {
    border-bottom: none;
}

.info-group strong {
    color: var(--text-primary);
    margin-right: 0.5rem;
}

/* =============================================================================
   Services Section
   ============================================================================= */

.services-section {
    padding: 0;
    background-color: transparent;
}

.section-title {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    max-width: none;
}

.service-card {
    background-color: transparent;
    padding: 18px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.06);
    text-align: left;
    transition: var(--transition);
    cursor: default;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.service-card:hover {
    border-color: rgba(255,107,107,0.18);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255,107,107,0.06);
}

.service-icon {
    font-size: 1.25rem;
    color: var(--accent-color);
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.04);
    background: rgba(255,107,107,0.03);
}

.service-card h3 {
    margin: 0 0 6px 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* =============================================================================
   Portfolio/Recent Work Section
   ============================================================================= */

.portfolio-section {
    padding: 3rem 0;
    background-color: transparent;
    display: none;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: none;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    background-color: var(--secondary-color);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: var(--transition);
    padding: 2rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.portfolio-overlay .read-more {
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* =============================================================================
   Sidebar Info Section
   ============================================================================= */

.sidebar-info {
    grid-row: 1 / -1;
    align-self: start;
}

.sidebar-content {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.info-section {
    margin-bottom: 2rem;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section h3 {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 0.5rem 0;
    border-bottom: none;
    font-size: 0.85rem;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.info-list span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.sidebar-content .cta-button {
    width: 100%;
    margin-bottom: 1.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
}

/* =============================================================================
   Posts & Blog
   ============================================================================= */

.post-item {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.post-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.1);
}

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
}

.entry-title a {
    color: var(--text-primary);
}

.entry-title a:hover {
    color: var(--accent-color);
}

.entry-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.featured-image {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.post-tags,
.post-categories {
    margin-bottom: 0.5rem;
}

.post-tags a,
.post-categories a {
    display: inline-block;
    background-color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
}

.post-tags a:hover,
.post-categories a:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* Pagination */
.posts-pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.page-numbers {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.page-numbers:hover,
.page-numbers.current {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* =============================================================================
   Footer
   ============================================================================= */

.site-footer {
    background-color: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-widgets {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.widget {
    color: var(--text-secondary);
}

.widget-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.widget ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.footer-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-menu a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--accent-color);
}

/* =============================================================================
   Utility Classes
   ============================================================================= */

.no-results {
    padding: 4rem 2rem;
    text-align: center;
}

.page-header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.page-title {
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 4px;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.search-form input[type="submit"] {
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.search-form input[type="submit"]:hover {
    background-color: #ff8787;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    -webkit-clip-path: none;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ================================
   Demo-specific layout overrides
   ================================ */

/* Hide default header navigation on the front page (we render a hero nav) */
body.home .site-header .main-navigation,
body.front-page .site-header .main-navigation {
    display: none;
}

.page-container {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 0;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
}

.hero-left {
    position: relative;
    min-height: 100vh;
}

.hero-image {
    background-image: url('../images/hero.svg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100vh;
}

.social-float {
    position: absolute;
    left: 48px;
    bottom: 48px;
    display: flex;
    gap: 12px;
    z-index: 20;
}

.social {
    display: inline-block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,107,107,0.08);
    color: var(--accent-color);
    text-align: center;
    line-height: 34px;
    font-weight: 700;
}

.social i { font-size: 14px; }

.hero-right {
    background-color: var(--primary-color);
    color: var(--text-primary);
    padding: 60px 80px;
    min-height: 100vh;
    box-sizing: border-box;
}

.hero-nav {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.hero-nav .hero-menu {
    list-style: none;
    display: flex;
    gap: 28px;
}

.hero-nav a {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.hero-content {
    max-width: 560px;
}

.hero-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.hero-title {
    font-size: 3.2rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    line-height: 1.05;
}

.hero-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.8;
    max-width: 520px;
}

.contact-columns {
    display: flex;
    gap: 40px;
    margin: 24px 0 28px 0;
}

.contact-left, .contact-right {
    min-width: 180px;
}

.info-list li {
    padding: 6px 0;
    color: var(--text-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    margin-top: 40px;
}

/* Bottom CTA bar */
.bottom-cta {
    position: fixed;
    left: 60px;
    right: 60px;
    bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10,10,10,0.75);
    padding: 14px 22px;
    border-radius: 6px;
    z-index: 90;
    color: var(--text-secondary);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.bottom-cta .download-cv {
    background: var(--accent-color);
    color: white;
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(255,107,107,0.18);
}

@media (max-width: 1024px) {
    .page-container {
        grid-template-columns: 1fr;
    }
    .hero-image { height: 50vh; }
    .hero-right { padding: 40px; }
    .bottom-cta { left: 20px; right: 20px; }
}

