/* 
* CloudSketcher Feature Pages - Common Stylesheet
* Unified design system for all feature detail pages
*/

/* ==================== 
   CSS Variables
====================== */
:root {
    --primary: #1486d1;
    --secondary: #cd35dd;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --dark: #212529;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --gray-light: #f5f7fa;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --border-radius: 10px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-family: 'Poppins', sans-serif;
}

/* ==================== 
   Global Styles
====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }

p {
    margin-bottom: 15px;
    color: var(--gray);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== 
   Buttons
====================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(205, 53, 221, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(205, 53, 221, 0.4);
    color: var(--white);
}

/* ==================== 
   Navigation
====================== */
.feature-nav {
    padding: 20px 0;
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.feature-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

.nav-logo img {
    height: 45px;
}

/* ==================== 
   Hero Section
====================== */
.feature-hero {
    padding-top: 150px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}


.feature-hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
    color: var(--white);
}

.feature-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.hero-cta {
    margin-top: 30px;
}

.hero-image {
    flex: 1;
    max-width: 550px;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* ==================== 
   Section Headers
====================== */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
}

/* ==================== 
   Details Grid
====================== */
.details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.detail-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.detail-card:hover {
    transform: translateY(-10px);
}

.detail-card:hover::before {
    opacity: 0.05;
}

.detail-icon {
    width: 80px;
    height: 80px;
    background: rgba(20, 134, 209, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.detail-icon i {
    font-size: 2.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.detail-card:hover .detail-icon {
    background: var(--gradient);
}

.detail-card:hover .detail-icon i {
    color: var(--white);
}

.detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

/* ==================== 
   How It Works / Process
====================== */
.steps-timeline {
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--gradient);
    z-index: -1;
}

.step {
    text-align: center;
    flex: 1;
    padding: 0 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* ==================== 
   Platforms Grid
====================== */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.platform-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.platform-card img {
    height: 60px;
    margin-bottom: 20px;
}

/* ==================== 
   Demo Section
====================== */
.demo-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.demo-input, .demo-output {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.code-block {
    background: var(--dark);
    color: var(--white);
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    margin-top: 15px;
}

.demo-arrow {
    font-size: 3rem;
    color: var(--primary);
}

/* ==================== 
   Use Cases / Document Types
====================== */
.cases-grid, .types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.case-card, .type-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.case-card:hover, .type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.case-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.type-icon {
    margin-bottom: 20px;
}

.type-icon i {
    font-size: 3rem;
    color: var(--primary);
}

.type-card ul {
    list-style: none;
    text-align: left;
    margin-top: 15px;
}

.type-card ul li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.type-card ul li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ==================== 
   Process Steps (Horizontal)
====================== */
.process-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    flex: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.process-arrow {
    font-size: 2rem;
    color: var(--primary);
}

/* ==================== 
   Vision Process
====================== */
.vision-steps {
    max-width: 800px;
    margin: 0 auto;
}

.vision-step {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    background: var(--light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.step-visual {
    width: 100px;
    height: 100px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-visual i {
    font-size: 3rem;
    color: var(--white);
}

.step-info {
    flex: 1;
}

/* ==================== 
   Sources Grid
====================== */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.source-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.source-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.source-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* ==================== 
   Before/After Comparison
====================== */
.comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.before, .after {
    text-align: center;
}

.before img, .after img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 15px;
}

.arrow-transform {
    font-size: 3rem;
    color: var(--primary);
    text-align: center;
}

/* ==================== 
   CTA Section
====================== */
.feature-cta {
    background: var(--gradient);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* ==================== 
   Footer
====================== */
.feature-footer {
    background: var(--dark);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.feature-footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ==================== 
   Responsive Design
====================== */
@media (max-width: 1200px) {
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-grid, .types-grid, .sources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .feature-hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .steps-timeline {
        flex-direction: column;
        gap: 40px;
    }
    
    .steps-timeline::before {
        display: none;
    }
    
    .demo-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .demo-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 30px;
    }
    
    .process-arrow {
        transform: rotate(90deg);
    }
    
    .comparison {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .arrow-transform {
        transform: rotate(90deg);
        margin: 20px 0;
    }
    
    .platforms-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .feature-hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .details-grid,
    .cases-grid,
    .types-grid,
    .sources-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .vision-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-visual {
        width: 80px;
        height: 80px;
    }
    
    .step-visual i {
        font-size: 2.5rem;
    }
    
    .types-grid {
        grid-template-columns: 1fr;
    }
    
    .type-card ul {
        text-align: center;
    }
    
    .type-card ul li {
        padding-left: 0;
    }
    
    .type-card ul li::before {
        display: none;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    .detail-card,
    .case-card,
    .type-card,
    .source-card,
    .platform-card {
        padding: 20px;
    }
    
    .code-block {
        font-size: 0.9rem;
        padding: 15px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ==================== 
   Animations
====================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}
/* SketchVision Hero Section - Green theme */
.sketch-vision-hero {
    background: linear-gradient(135deg, #1486d1 0%, #0d4a7a 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
/* Cloud Convert Hero Section - Blue theme */
.cloud-convert-hero {
    background: linear-gradient(135deg, #1486d1 0%, #0d4a7a 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
/* SketchDraw Hero Section - Purple/Magenta theme */
.sketch-draw-hero {
    background: linear-gradient(135deg, #cd35dd 0%, #8e24aa 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
/* Enhanced Hero Section for SketchDocs */
.sketch-docs-hero {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-description {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    color: white;
}


/* Hero Features List */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
}

.feature-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-weight: bold;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* CTA Enhancement */
.cta-subtext {
    margin-top: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* Decorative Elements */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Floating Document Cards */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    width: 200px;
    height: 250px;
    animation: float 6s ease-in-out infinite;
}

.card-header {
    width: 60%;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    margin-bottom: 15px;
}

.card-line {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-bottom: 10px;
}

.card-line.short {
    width: 70%;
}

.card-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    transform: rotate(-5deg);
}

.card-2 {
    top: 40%;
    right: 10%;
    animation-delay: 2s;
    transform: rotate(5deg);
}

.card-3 {
    bottom: 15%;
    left: 5%;
    animation-delay: 4s;
    transform: rotate(-3deg);
}

/* Gradient Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: pulse 8s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(129, 236, 236, 0.8) 0%, transparent 70%);
    bottom: -150px;
    left: -50px;
    animation-delay: 4s;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-20px) rotate(-5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-features {
        flex-direction: column;
        gap: 20px;
    }
    
    .floating-card {
        display: none; /* Hide decorative cards on mobile */
    }
    
    .gradient-orb {
        filter: blur(60px);
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
}

 /* SketchTF specific styles */
 .sketch-tf-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.code-structure {
    background-color: #f8fafc;
    padding: 80px 0;
}

.structure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.structure-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.structure-card:hover {
    transform: translateY(-5px);
}

.structure-card i {
    font-size: 40px;
    color: #667eea;
    margin-bottom: 20px;
}

.terraform-features {
    padding: 80px 0;
}

.tf-features-list {
    max-width: 800px;
    margin: 0 auto;
}

.tf-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tf-icon {
    margin-right: 20px;
}

.tf-icon i {
    font-size: 24px;
    color: #10b981;
}

.tf-content h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #1e293b;
}

.tf-content p {
    margin: 0;
    color: #64748b;
}

.code-preview {
    background-color: #1e293b;
    padding: 80px 0;
    color: white;
}

.code-example {
    max-width: 900px;
    margin: 0 auto;
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
}

.code-tabs {
    display: flex;
    background: #1e293b;
    border-bottom: 1px solid #334155;
}

.code-tab {
    padding: 15px 25px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.code-tab.active,
.code-tab:hover {
    background: #0f172a;
    color: white;
}

.code-content {
    padding: 30px;
}

.code-content pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.code-content code {
    color: #e2e8f0;
}