/*!
Theme Name: James Crowe Dev
Theme URI: https://jamescrowedev.uk
Description: Professional web development portfolio theme
Author: James Crowe
Version: 1.0
*/

/* ========================================
   Global Styles
   ======================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #111111;
}

/* ========================================
   Hero Section Styling
   ======================================== */

/* Full-width hero with gradient background */
.wp-block-group.alignfull.has-custom-jcd-blue-background-color {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 50%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
}

/* Add subtle pattern overlay */
.wp-block-group.alignfull.has-custom-jcd-blue-background-color::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        );
    pointer-events: none;
}

/* Hero heading styles */
.wp-block-group.alignfull .has-xx-large-font-size {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

/* Hero subheading */
.wp-block-group.alignfull .has-large-font-size p,
.wp-block-group.alignfull .has-base-color {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    line-height: 1.7;
    color: #e0e7ff;
    font-weight: 400;
}

/* Hero subtitle */
.wp-block-group.alignfull h2.has-base-2-color {
    color: #cbd5e1 !important;
    font-weight: 500;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
}

/* Trust badges styling */
.wp-block-paragraph:has(.has-contrast-2-color) {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin-top: 1rem;
}

/* Feature boxes with borders */
.wp-block-columns .has-border-color {
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-columns .has-border-color:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Services Section
   ======================================== */

.has-base-2-background-color {
    background-color: #f8fafc;
}

/* Service column styling */
.wp-block-column {
    border-radius: 16px;
    padding: 2.5rem;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.wp-block-column:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
}

/* ========================================
   Modern Card Styling
   ======================================== */

.wp-block-columns.alignwide {
    gap: 2rem;
}

@media (max-width: 781px) {
    .wp-block-columns.alignwide {
        gap: 1.5rem;
    }
}

/* ========================================
   Project Cards
   ======================================== */

.wp-block-image.size-large {
    border-radius: 12px;
    overflow: hidden;
}

.wp-block-image.size-large img {
    transition: transform 0.3s ease;
}

.wp-block-column:hover .wp-block-image.size-large img {
    transform: scale(1.05);
}

/* ========================================
   Button Improvements
   ======================================== */

.wp-block-button__link {
    border-radius: 12px;
    padding: 1.2rem 3rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    position: relative;
    overflow: hidden;
}

.wp-block-button__link::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.wp-block-button__link:hover::before {
    width: 300px;
    height: 300px;
}

.wp-block-button.has-custom-width.wp-block-button__width-100 .wp-block-button__link {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

/* Hover effects for buttons */
.wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Typography Enhancements
   ======================================== */

.wp-block-heading {
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.wp-block-heading.has-xx-large-font-size {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-feature-settings: "liga" 1, "kern" 1;
}

h2, h3 {
    margin-top: 0;
}

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

p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ========================================
   Section Spacing
   ======================================== */

.wp-block-group.alignfull {
    padding: 5rem 2rem;
}

@media (min-width: 782px) {
    .wp-block-group.alignfull {
        padding: 6rem 4rem;
    }
}

/* Sections with background color */
.has-base-2-background-color {
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
}

/* ========================================
   List Improvements
   ======================================== */

.wp-block-list {
    padding-left: 1.5rem;
}

.wp-block-list li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* ========================================
   Modern Improvements
   ======================================== */

/* Image improvements */
.wp-block-image {
    border-radius: 12px;
    overflow: hidden;
}

.wp-block-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-block-column:hover .wp-block-image img {
    transform: scale(1.05);
}

/* Spacing improvements */
.wp-block-spacer {
    min-height: 1rem;
}

/* Base-2 background styling */
.has-base-2-background-color {
    border-radius: 0;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 781px) {
    .wp-block-heading.has-xx-large-font-size {
        font-size: 2rem;
    }
    
    .wp-block-columns.alignwide {
        flex-direction: column;
    }
    
    .wp-block-group.alignfull {
        padding: 4rem 1.5rem;
    }
    
    .wp-block-column {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .wp-block-heading.has-xx-large-font-size {
        font-size: 1.75rem;
    }
    
    .wp-block-button__link {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}
