/* Page Templates Complete Styling */

/* Common Utility Classes */
.py-20 {
    padding-top: 80px;
    padding-bottom: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.max-w-4xl {
    max-width: 896px;
}

.text-center {
    text-align: center;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-muted {
    color: hsl(var(--muted-foreground));
}

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.heading-xl {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
}

.heading-lg {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
}

.heading-md {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    line-height: 1.3;
}

/* Icon Base */
.icon {
    width: 24px;
    height: 24px;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.text-white {
    color: white;
}

.text-white\/90 {
    color: rgba(255, 255, 255, 0.9);
}

/* Services Page Styles */
.services-section {
    background: hsl(var(--background));
}

[data-theme="dark"] .services-section {
    background: hsl(var(--card));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    background: hsl(var(--card));
    padding: 32px;
    border-radius: 16px;
    border: 2px solid hsl(var(--border));
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--primary));
}

.service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 56px;
    height: 56px;
    background: hsl(var(--primary) / 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
}

.service-icon svg {
    color: hsl(var(--primary));
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: hsl(var(--foreground));
}

.service-description {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: 8px 0;
    color: hsl(var(--muted-foreground));
    position: relative;
    padding-left: 28px;
    font-size: 15px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: hsl(var(--primary));
    font-weight: 700;
    font-size: 18px;
}

.no-services-message {
    text-align: center;
    padding: 60px 20px;
    background: hsl(var(--muted));
    border-radius: 16px;
}

/* Portfolio Page Styles */
.portfolio-section {
    background: hsl(var(--background));
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.portfolio-card {
    background: hsl(var(--card));
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid hsl(var(--border));
    transition: var(--transition-smooth);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: hsl(var(--primary));
}

.portfolio-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: hsl(var(--muted));
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.portfolio-category {
    background: hsl(var(--primary));
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.portfolio-content {
    padding: 24px;
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: hsl(var(--foreground));
}

.portfolio-description {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 16px;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tech-badge {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.portfolio-results {
    border-top: 1px solid hsl(var(--border));
    padding-top: 16px;
}

.portfolio-results strong {
    color: hsl(var(--foreground));
    font-weight: 600;
}

.portfolio-results ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.portfolio-results li {
    padding: 4px 0;
    color: hsl(var(--muted-foreground));
    position: relative;
    padding-left: 20px;
    font-size: 0.875rem;
}

.portfolio-results li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: hsl(var(--primary));
    font-weight: 700;
}

.no-portfolio-message {
    text-align: center;
    padding: 60px 20px;
    background: hsl(var(--muted));
    border-radius: 16px;
}

/* Stats Section (Portfolio & About) */
.stats-section {
    background: hsl(var(--muted));
}

[data-theme="dark"] .stats-section {
    background: hsl(var(--background));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.stat-card {
    text-align: center;
    padding: 32px 24px;
    background: hsl(var(--card));
    border-radius: 16px;
    border: 2px solid hsl(var(--border));
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 8px;
}

.stat-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

/* About Page Styles */
.story-section {
    background: hsl(var(--background));
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.story-content {
    display: flex;
    flex-direction: column;
}

.story-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: hsl(var(--muted-foreground));
}

.story-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
}

.values-section {
    background: hsl(var(--muted));
}

[data-theme="dark"] .values-section {
    background: hsl(var(--background));
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.value-card {
    background: hsl(var(--card));
    padding: 32px;
    border-radius: 16px;
    border: 2px solid hsl(var(--border));
    transition: var(--transition-smooth);
    text-align: center;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--primary));
}

.value-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    background: hsl(var(--primary) / 0.1);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.value-icon svg {
    color: hsl(var(--primary));
    width: 32px;
    height: 32px;
}

.value-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: hsl(var(--foreground));
}

.value-description {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

.team-section {
    background: hsl(var(--background));
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 32px;
}

.team-card {
    background: hsl(var(--card));
    padding: 32px;
    border-radius: 16px;
    border: 2px solid hsl(var(--border));
    text-align: center;
    transition: var(--transition-smooth);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--primary));
}

.team-avatar {
    width: 96px;
    height: 96px;
    background: hsl(var(--primary) / 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.team-avatar svg {
    width: 48px;
    height: 48px;
    color: hsl(var(--primary));
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: hsl(var(--foreground));
}

.team-role {
    font-size: 1rem;
    color: hsl(var(--primary));
    margin-bottom: 12px;
    font-weight: 600;
}

.team-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

.achievements-section {
    background: var(--gradient-primary);
    color: white;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
}

.achievement-item {
    text-align: center;
}

.achievement-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.achievement-label {
    font-size: 1.125rem;
    font-weight: 600;
    opacity: 0.95;
}

/* Contact Page Styles */
.contact-section {
    background: hsl(var(--background));
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-form-wrapper {
    background: hsl(var(--card));
    padding: 40px;
    border-radius: 16px;
    border: 2px solid hsl(var(--border));
}

.form-header {
    margin-bottom: 32px;
}

.form-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid hsl(var(--border));
    border-radius: 8px;
    font-size: 1rem;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.form-note {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-align: center;
    margin-top: 16px;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-intro {
    margin-bottom: 16px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: hsl(var(--card));
    padding: 24px;
    border-radius: 12px;
    border: 2px solid hsl(var(--border));
    display: flex;
    gap: 20px;
    transition: var(--transition-smooth);
}

.info-card:hover {
    border-color: hsl(var(--primary));
    box-shadow: var(--shadow-md);
}

.info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: hsl(var(--primary) / 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    color: hsl(var(--primary));
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 8px;
}

.info-detail {
    font-size: 1rem;
    color: hsl(var(--foreground));
    font-weight: 600;
    margin-bottom: 4px;
}

.info-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.social-card {
    background: hsl(var(--card));
    padding: 24px;
    border-radius: 12px;
    border: 2px solid hsl(var(--border));
}

.social-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.faq-section {
    background: hsl(var(--muted));
}

[data-theme="dark"] .faq-section {
    background: hsl(var(--background));
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    background: hsl(var(--card));
    padding: 32px;
    border-radius: 12px;
    border: 2px solid hsl(var(--border));
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: hsl(var(--primary));
    box-shadow: var(--shadow-md);
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 12px;
}

.faq-answer {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: white;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-professional {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-professional:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: hsl(var(--muted));
    border-color: hsl(var(--primary));
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.btn-outline-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
    background: transparent;
    color: hsl(var(--foreground));
    border: 2px solid hsl(var(--border));
}

.btn-outline-sm:hover {
    background: hsl(var(--muted));
    border-color: hsl(var(--primary));
}

.btn-full {
    width: 100%;
}

/* Process Step Aliases (used in Services page) */
.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-lg);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: hsl(var(--foreground));
}

.step-description {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .story-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .services-grid,
    .portfolio-grid,
    .stats-grid,
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .py-20 {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}
