/* Advanced CSS Variables */
:root {
    --primary: #0f2027;
    --primary-light: #203a43;
    --primary-dark: #060e11;
    --secondary: #2c5aa0;
    --accent: #ff6b6b;
    --accent-gold: #ffd93d;
    --accent-gold-dark: #f4c430;
    --success: #4ecdc4;
    --warning: #ff9f43;
    --danger: #ff6b6b;

    --neutral-0: #ffffff;
    --neutral-50: #fafafb;
    --neutral-100: #f4f5f7;
    --neutral-200: #e8eaed;
    --neutral-300: #c1c7cd;
    --neutral-400: #9aa0a6;
    --neutral-500: #5f6368;
    --neutral-600: #3c4043;
    --neutral-700: #2d3134;
    --neutral-800: #1f2124;
    --neutral-900: #101113;

    --text: var(--neutral-800);
    --text-light: var(--neutral-600);
    --text-lighter: var(--neutral-500);
    --text-muted: var(--neutral-400);

    --font-primary: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: 'Playfair Display', Georgia, serif;
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --blur-xs: blur(4px);
    --blur-sm: blur(8px);
    --blur-md: blur(16px);
    --blur-lg: blur(24px);
    --blur-xl: blur(40px);

    --border-radius-xs: 4px;
    --border-radius-sm: 8px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    --border-radius-2xl: 24px;
    --border-radius-3xl: 32px;
    --border-radius-full: 9999px;

    --container-max: 1400px;
    --container-padding: clamp(1rem, 4vw, 2rem);
    --section-gap: clamp(4rem, 8vw, 8rem);

    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text);
    background: var(--neutral-0);
    overflow-x: hidden;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
    scroll-behavior: smooth;
}

::selection {
    background: var(--secondary);
    color: white;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary);
    font-feature-settings: "lnum" 1;
    vertical-align: baseline;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

main p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
    text-align: left;
}

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

a:hover {
    color: var(--accent);
}

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

/* Utility Classes */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--secondary);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold), #f6e05e);
    color: var(--dark);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #f6e05e, var(--accent-gold));
    color: var(--dark);
}

.btn-services {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border: 3px solid var(--accent-gold);
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.btn-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-gold), #f6e05e);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-services:hover::before {
    left: 0;
}

.btn-services:hover {
    color: var(--primary);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(214, 158, 46, 0.4);
}

.btn-services i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Layout Components */
.section {
    padding: var(--section-gap) 0;
    position: relative;
}

.section.services {
    padding: calc(var(--section-gap) * 1.25) 0 calc(var(--section-gap) + 2rem);
    background: linear-gradient(180deg, var(--neutral-50) 0%, var(--neutral-0) 100%);
    position: relative;
    z-index: auto;
}

.section-alt {
    background: var(--neutral-50);
}

.section-heading {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.section-heading h2 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6);
    font-weight: 700;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent-gold));
    border-radius: 2px;
}

.section-heading p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.125rem;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-align: left;
}

/* Header & Navigation */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    border-bottom: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-lg);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.header-center {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius-full);
    object-fit: cover;
    border: 3px solid var(--accent-gold);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.logo img:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.05) rotate(2deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-secondary);
}

.logo-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.nav-toggle:hover {
    background: var(--light);
}

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

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

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.75rem 0;
    transition: var(--transition);
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--accent-gold));
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--secondary);
}

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

.nav-cta {
    margin-left: 1rem;
}

.nav-cta .btn {
    background: linear-gradient(135deg, var(--accent-gold), #f6e05e);
    color: var(--primary);
    font-weight: 600;
}

.nav-cta .btn:hover {
    background: linear-gradient(135deg, #f6e05e, var(--accent-gold));
    color: var(--dark);
    transform: translateY(-2px);
}

@keyframes ring {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(-10deg);
    }
    30% {
        transform: rotate(10deg);
    }
    60% {
        transform: rotate(-5deg);
    }
    70% {
        transform: rotate(5deg);
    }
}

/* Hero Section with Slideshow */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    padding: 12rem 0 6rem;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 3s ease-in-out;
    animation: slideShow 16s infinite;
}

.hero-slide:nth-child(1) {
    background-image: url('jimusyo-photo2.jpg');
    opacity: 1;
    animation: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(26, 54, 93, 0.8) 0%,
        rgba(44, 90, 160, 0.7) 50%,
        rgba(49, 130, 206, 0.8) 100%);
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
    width: 100%;
    animation: heroFadeIn 1.2s ease-out;
}

.hero-text {
    max-width: 800px;
}

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

.hero-portrait {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-portrait img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(214, 158, 46, 0.3);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.hero-portrait img:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 0 0 12px rgba(214, 158, 46, 0.4);
}

.hero-portrait-overlay {
    position: absolute;
    top: -20px;
    right: -20px;
    z-index: 2;
}

.experience-badge {
    background: linear-gradient(135deg, var(--accent-gold), #f6e05e);
    padding: 1.5rem;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid white;
    animation: pulse 2s infinite;
}

.experience-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    font-family: var(--font-secondary);
}

.experience-text {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1;
    margin-top: 0.25rem;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.hero h1 {
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-feature-settings: "lnum" 1;
    vertical-align: baseline;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(2rem, 4vw, 3rem);
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.services-grid .service-wrapper:nth-child(1),
.services-grid .service-wrapper:nth-child(2) {
    grid-column: span 3;
}

.services-grid .service-wrapper:nth-child(3),
.services-grid .service-wrapper:nth-child(4) {
    grid-column: span 3;
}

.service-wrapper {
    position: relative;
    margin-bottom: 3.5rem;
    margin-top: 1rem;
}

.service-card {
    background: var(--neutral-0);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
    position: relative;
    border: 1px solid var(--neutral-200);
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border-color: var(--accent-gold);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-glass);
    transition: left 0.6s ease;
    z-index: 1;
}

.service-card:hover::before {
    left: 100%;
}

.service-image {
    height: 220px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
    z-index: 1;
}

.service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    transition: var(--transition);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.service-wrapper:nth-child(1) .service-image::before {
    background-image: url('service1.jpg');
}

.service-wrapper:nth-child(2) .service-image::before {
    background-image: url('service2.jpg');
}

.service-wrapper:nth-child(3) .service-image::before {
    background-image: url('service3.jpg');
}

.service-wrapper:nth-child(4) .service-image::before {
    background-image: url('service4.jpg');
}

.service-wrapper:hover .service-image::before {
    opacity: 0.9;
    transform: scale(1.1);
}

.service-icon {
    position: absolute;
    top: 195px;
    left: 30px;
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    border: 4px solid var(--neutral-0);
    transition: var(--transition-bounce);
}

.service-wrapper:hover .service-icon {
    transform: scale(1.1) rotate(360deg);
}

.service-icon i {
    font-size: 1.75rem;
    color: var(--primary);
}

.service-content {
    padding: 4rem 2rem 2.5rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    text-align: left;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(26, 54, 93, 0.1);
    position: relative;
    padding-bottom: 0.5rem;
}

.service-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), #f6e05e);
    border-radius: 2px;
}

.service-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    text-align: left;
}

.force-left-align {
    text-align: left;
}

.text-left-force {
    display: block;
    text-align: left;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.8;
    font-family: var(--font-primary);
}

/* News Section */
.news {
    background: linear-gradient(135deg,
        var(--neutral-50) 0%,
        rgba(44, 90, 160, 0.03) 50%,
        var(--neutral-50) 100%);
    position: relative;
    overflow: hidden;
}

.news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="0.8" fill="rgba(49,130,206,0.4)"/><circle cx="60" cy="70" r="0.8" fill="rgba(214,158,46,0.4)"/><circle cx="80" cy="20" r="0.8" fill="rgba(49,130,206,0.3)"/></svg>');
    animation: newsFloat 12s ease-in-out infinite;
    z-index: 1;
}

@keyframes newsFloat {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    25% { transform: translateX(20px) translateY(-15px) rotate(90deg); }
    50% { transform: translateX(-10px) translateY(20px) rotate(180deg); }
    75% { transform: translateX(-20px) translateY(-10px) rotate(270deg); }
    100% { transform: translateX(0) translateY(0) rotate(360deg); }
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    position: relative;
    z-index: 2;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.news-item {
    background: var(--neutral-0);
    padding: 2.5rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
    border-left: 4px solid var(--secondary);
    border-bottom: 3px solid var(--accent-gold);
    position: relative;
    overflow: hidden;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(49, 130, 206, 0.1),
        transparent);
    transition: left 0.6s;
    z-index: 0;
}

.news-item:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: var(--shadow-2xl);
    border-left-color: var(--accent-gold);
    border-bottom-color: var(--secondary);
}

.news-item:hover::before {
    left: 100%;
}

.news-item > * {
    position: relative;
    z-index: 1;
}

.news-date {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.news-title {
    color: var(--primary);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-summary {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Features Section */
.features {
    background: var(--primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="0,100 100,0 100,100" fill="rgba(255,255,255,0.02)"/></svg>');
    z-index: 1;
}

.features-content {
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.feature-item {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-xl);
    backdrop-filter: var(--blur-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: transform 0.6s ease;
    z-index: -1;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px) scale(1.02);
}

.feature-item:hover::before {
    transform: rotate(180deg);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-accent);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-bounce);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(-10deg);
}

.feature-icon i {
    font-size: 2.25rem;
    color: var(--primary);
}

.feature-item h3 {
    color: white;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-feature-settings: "lnum" 1;
    vertical-align: baseline;
    font-size: 1.25rem;
    white-space: nowrap;
    text-align: left;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-align: left;
}

/* CTA Section */
.cta {
    background: var(--gradient-accent);
    color: var(--primary);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(26,54,93,0.1)"/></svg>');
    animation: float 20s linear infinite;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.cta p {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: var(--primary-dark);
    font-size: 1.125rem;
    text-align: left;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem 0 1rem;
    position: relative;
    font-size: 14px;
}

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

.footer-col h3 {
    color: white;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-size: 1.2rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.footer-col:first-child h3::after {
    display: none;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
    font-size: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-contact p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.footer-contact i {
    color: var(--accent-gold);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding: 1rem 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    font-size: 14px;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Animations */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Advanced Responsive Design */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .services-grid .service-wrapper:nth-child(1),
    .services-grid .service-wrapper:nth-child(2),
    .services-grid .service-wrapper:nth-child(3),
    .services-grid .service-wrapper:nth-child(4) {
        grid-column: span 1;
    }
}

@media (max-width: 1024px) {
    :root {
        --container-padding: clamp(1rem, 3vw, 1.5rem);
        --section-gap: clamp(3rem, 6vw, 6rem);
    }

    .hero {
        padding: 10rem 0 4rem;
        align-items: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-portrait img {
        width: 220px;
        height: 220px;
    }

    .experience-badge {
        width: 80px;
        height: 80px;
        top: -15px;
        right: -15px;
    }

    .experience-number {
        font-size: 1.5rem;
    }

    .experience-text {
        font-size: 0.6rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 800px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .header-center {
        display: none;
    }

    .nav-item {
        margin: 0;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid var(--neutral-200);
        transition: var(--transition);
    }

    .nav-item:hover {
        background: var(--neutral-50);
        border-radius: var(--border-radius);
    }

    .nav-cta {
        margin: 1.5rem 0 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --section-gap: clamp(2.5rem, 5vw, 4rem);
    }

    .hero {
        text-align: center;
        padding: 8rem 0 4rem;
        min-height: auto;
        align-items: center;
    }

    .hero-content {
        margin-top: 0;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-portrait img {
        width: 180px;
        height: 180px;
    }

    .experience-badge {
        width: 70px;
        height: 70px;
        padding: 1rem;
        top: -10px;
        right: -10px;
    }

    .experience-number {
        font-size: 1.25rem;
    }

    .experience-text {
        font-size: 0.55rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        margin-bottom: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
        max-width: none;
    }

    .feature-item {
        padding: 2rem 1.5rem;
    }

    .feature-item h3 {
        font-size: 1.1rem;
    }

    .logo-title {
        font-size: 1.125rem;
    }

    .news-item {
        padding: 2rem 1.5rem;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hide {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes for removing inline styles */
.service-description-detailed {
    text-align: left;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.8;
}

.btn-margin-top {
    margin-top: 1rem;
}

.logo-subtitle-size {
    font-size: 1.375rem;
}

.section-heading-white h2 {
    color: white;
}

.section-heading-white p {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.cta-button-wrapper {
    text-align: center;
    margin-top: 1rem;
}

.btn-primary-solid {
    background: var(--primary);
    color: white;
}

.footer-heading-spacing-top {
    margin-bottom: 0.1rem;
}

.footer-heading-spacing-middle {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.footer-description {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-copyright {
    color: white;
    text-align: center;
}

.footer-copyright a {
    color: white;
    text-decoration: none;
}
