/* Shared styles for Hyperdata Inc. */

/* View Transitions */
@view-transition {
  navigation: auto;
}

/* Only morph the navigation, not the h1 */
.nav {
    view-transition-name: navigation;
}

/* Simple page-level transition */
::view-transition-old(root) {
  animation: simple-out 0.3s ease-out;
}

::view-transition-new(root) {
  animation: simple-in 0.3s ease-in;
}

@keyframes simple-out {
  to { 
    opacity: 0;
  }
}

@keyframes simple-in {
  from { 
    opacity: 0;
  }
}

/* Logo SVG styling */
svg {
    width: 80px;
}

/* Intro text styling */
.intro-text {
    font-size: 1.2rem;
    color: #1a1a2e;
    margin: 30px 0 20px 0;
    max-width: 600px;
    text-align: center;
    line-height: 1.4;
}

.intro-text strong {
    font-weight: 400;
    display: block;
    margin-bottom: 8px;
}

/* Summary text styling */
.summary-text {
    font-size: 1rem;
    color: #555;
    margin: 0 0 30px 0;
    max-width: 550px;
    text-align: center;
    line-height: 1.6;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f9f8f6;
    font-family: 'Prata', serif;
    line-height: 1.6;
    color: #1a1a2e;
}

/* Navigation */
.nav {
    text-align: center;
    margin: 20px 0;
}

.nav a {
    color: #0066cc;
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    margin: 0 15px;
}

.nav a:hover {
    color: #004499;
}

/* Logo link styling */
.logo-link {
    color: inherit;
    text-decoration: none;
}

.logo-link:hover {
    color: #004499;
}

/* Floating logo animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes shadowPulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateX(-50%) scale(0.85);
        opacity: 0.2;
    }
}

.logo-container {
    display: inline-block;
    position: relative;
}

.logo-container::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 65%;
    width: 95px;
    height: 32px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    animation: shadowPulse 2.5s ease-in-out infinite;
}

.logo-float {
    display: block;
    animation: float 2.5s ease-in-out infinite;
}

/* Horizontal layout modifier for logo */
.logo-container--horizontal {
    vertical-align: middle;
    margin-left: 25px;
    transform: translateY(-8px);
}

.logo-container--horizontal::after {
    bottom: -15px;
    width: 85px;
    height: 28px;
}

/* Home page specific styles */
.home-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Services page specific styles */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 10px;
}

.header {
    text-align: center;
    margin-bottom: 60px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0 0 10px 0;
    color: #1a1a2e;
}

.header p {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

.tagline {
    text-align: center;
    margin-bottom: 50px;
}

.tagline h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin: 0 0 15px 0;
    color: #1a1a2e;
}

.tagline p {
    font-size: 1.1rem;
    color: #555;
    margin: 0;
}

.section {
    margin-bottom: 50px;
}

.section h3 {
    font-size: 1.4rem;
    font-weight: 300;
    margin: 0 0 30px 0;
    color: #1a1a2e;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.service-item {
    padding: 25px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(26, 26, 46, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(26, 26, 46, 0.1);
}

.service-item h4 {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0 0 15px 0;
    color: #1a1a2e;
}

.service-item p, .service-item li {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

.service-item hr {
    color: #555;
}

.contact-section {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(26, 26, 46, 0.1);
    margin-top: 50px;
}

.contact-section h3 {
    font-size: 1.4rem;
    font-weight: 300;
    margin: 0 0 20px 0;
    color: #1a1a2e;
}

/* Shared typography */
h1 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin: 0;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

a {
    color: #0066cc;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: #004499;
}

p {
    font-size: 1rem;
    color: #555;
    margin: 0;
    font-weight: 400;
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: #777;
}

/* Case Study Styles */
.case-study {
    margin-bottom: 60px;
    padding-bottom: 0;
}

.case-study-divider {
    border: none;
    border-top: 1px solid rgba(26, 26, 46, 0.08);
    margin: 35px 0;
}

.case-study-quote {
    background: rgba(255, 255, 255, 0.5);
    padding: 25px 30px;
    margin-bottom: 35px;
    border-left: 4px solid #1a1a2e;
    font-size: 1.2rem;
    font-style: italic;
    color: #1a1a2e;
    line-height: 1.5;
    text-align: center;
}

/* Colored quote variations */
.case-study-quote-purple {
    border-left-color: #6F3FD6;
}

.case-study-quote-blue {
    border-left-color: #368BEA;
}

.case-study-quote-teal {
    border-left-color: #35D6C5;
}

.case-study-header {
    text-align: center;
    margin-bottom: 35px;
}

.case-study-header h3 {
    font-size: 1.8rem;
    font-weight: 300;
    margin: 0 0 10px 0;
    color: #1a1a2e;
}

.case-study-meta {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
    margin: 5px 0;
}

.case-study-section {
    margin-bottom: 25px;
}

.case-study-section h4 {
    font-size: 1.1rem;
    font-weight: 400;
    color: #1a1a2e;
    margin: 0 0 10px 0;
}

.case-study-section p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}

.case-study-section ul {
    margin: 10px 0;
    padding-left: 25px;
}

.case-study-section li {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Case study anchor navigation */
.case-study-nav {
    text-align: center;
    margin: 25px 0 50px 0;
}

.case-study-nav a {
    color: #0066cc;
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    margin: 0 15px;
}

.case-study-nav a:hover {
    color: #004499;
}

/* Responsive design */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
}