/* Anaxiatech AB - Company Website Styles */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #8b4513;
    --secondary-color: #2d3748;
    --accent-color: #cd853f;
    --accent-light: #daa520;
    --success-color: #68d391;
    --warning-color: #fbd38d;
    --error-color: #fc8181;

    /* Dark theme text colors */
    --text-primary: #f7fafc;
    --text-secondary: #cbd5e0;
    --text-muted: #a0aec0;
    --text-accent: #90cdf4;

    /* Dark theme backgrounds */
    --background-primary: #0d1117;
    --background-secondary: #161b22;
    --background-accent: #21262d;
    --background-card: #0d1117;
    --background-nav: rgba(13, 17, 23, 0.95);

    /* Dark theme borders and effects */
    --border-color: #30363d;
    --border-light: #21262d;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --glow: 0 0 20px rgba(49, 130, 206, 0.3);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;

    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;

    --container-max-width: 1200px;
    --section-padding: 4rem 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--background-primary) 0%, var(--background-secondary) 100%);
    min-height: 100vh;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.navbar {
    background: var(--background-nav);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
    text-decoration: none !important;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(139, 69, 19, 0.3));
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-logo:hover img {
    filter: drop-shadow(0 0 15px rgba(139, 69, 19, 0.5));
    transform: scale(1.1);
}

.nav-brand {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none !important;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo:hover .nav-brand {
    text-decoration: none !important;
}

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

.nav-link {
    text-decoration: none !important;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    position: relative;
}

.nav-link:hover,
.nav-link:focus,
.nav-link:active {
    color: var(--accent-light);
    background: rgba(49, 130, 206, 0.1);
    transform: translateY(-2px);
    text-decoration: none !important;
}

/* Hero Section */
.hero {
    padding: 10rem 0 8rem;
    background: radial-gradient(ellipse at top, var(--background-accent) 0%, var(--background-primary) 50%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(49, 130, 206, 0.1) 0%, rgba(26, 54, 93, 0.1) 100%);
    pointer-events: none;
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 50%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(139, 69, 19, 0.3);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 600px;
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(139, 69, 19, 0.3));
    transition: all 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 40px rgba(139, 69, 19, 0.5));
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-light);
    border: 2px solid var(--accent-light);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: var(--accent-light);
    color: var(--background-primary);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: rgba(49, 130, 206, 0.1);
    color: var(--accent-light);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

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

.btn-text {
    background-color: transparent;
    color: var(--accent-color);
    padding: 0.5rem 0;
}

.btn-text:hover {
    color: #2c5aa0;
}

/* Sections */
section {
    padding: var(--section-padding);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-light));
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.3);
}

/* Products Section */
.products {
    background: var(--background-secondary);
    position: relative;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-light));
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.2);
}

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

.product-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.product-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.product-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.product-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.product-features li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.5;
}

.product-features li::before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(104, 211, 145, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.product-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Crackz Showcase Section */
.crackz-showcase {
    background: linear-gradient(135deg, var(--background-primary) 0%, var(--background-accent) 50%, var(--background-primary) 100%);
    position: relative;
    padding: 6rem 0;
}

.crackz-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(139, 69, 19, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.crackz-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.crackz-logo {
    width: 200px;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
    filter: drop-shadow(0 0 20px rgba(139, 69, 19, 0.3));
    transition: all 0.3s ease;
}

.crackz-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(139, 69, 19, 0.5));
}

.crackz-tagline {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.crackz-content {
    position: relative;
    z-index: 1;
}

.crackz-description,
.crackz-features,
.crackz-tech,
.crackz-cta {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.crackz-description:hover,
.crackz-features:hover,
.crackz-tech:hover,
.crackz-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.6);
    border-color: var(--accent-color);
}

.crackz-description h3,
.crackz-features h3,
.crackz-tech h3,
.crackz-cta h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-light), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.crackz-description p,
.crackz-cta p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: var(--font-size-lg);
    margin-bottom: 2rem;
}

.crackz-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.crackz-stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(139, 69, 19, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(139, 69, 19, 0.2);
    transition: all 0.3s ease;
}

.crackz-stat:hover {
    transform: scale(1.05);
    background: rgba(139, 69, 19, 0.15);
    border-color: var(--accent-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    padding: 2rem;
    background: rgba(49, 130, 206, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    background: rgba(49, 130, 206, 0.08);
    border-color: var(--accent-light);
}

.feature-item h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: var(--font-size-base);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.tech-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    border-radius: 2rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tech-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
}

.crackz-cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(49, 130, 206, 0.1));
}

.crackz-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Technology Section */
.technology {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-primary);
    position: relative;
}

.technology::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(49, 130, 206, 0.1) 0%, rgba(26, 54, 93, 0.1) 100%);
    pointer-events: none;
}

.technology .section-title {
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.technology .section-title::after {
    background: linear-gradient(135deg, var(--accent-light), white);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.tech-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-light);
}

.tech-item h4 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-light);
}

.tech-item p {
    color: rgba(255, 255, 255, 0.8);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

/* Clients Section */
.clients {
    background: var(--background-primary);
    position: relative;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.client-highlight {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
}

.client-highlight:hover {
    transform: translateY(-5px);
    border-left-color: var(--accent-light);
    box-shadow: var(--shadow-lg);
}

.client-highlight h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.client-highlight p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.client-highlight strong {
    color: var(--accent-light);
    font-weight: 600;
}

.certifications {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    background: rgba(49, 130, 206, 0.05);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(49, 130, 206, 0.2);
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--background-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.cert-item:hover {
    border-color: var(--accent-color);
    transform: scale(1.02);
}

.cert-icon {
    font-size: 1.5rem;
}

.cert-text {
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

/* Contact Section */
.contact {
    background: var(--background-accent);
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3,
.contact-form h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.contact-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* You might want to implement a mobile menu */
    }

    .hero-container,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-stats {
        justify-content: center;
    }

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

    .crackz-logo {
        width: 150px;
    }

    .crackz-description,
    .crackz-features,
    .crackz-tech,
    .crackz-cta {
        padding: 2rem;
    }

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

    .crackz-stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .hero-title {
        font-size: var(--font-size-2xl);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .product-card,
    .contact-item {
        padding: 1.5rem;
    }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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