/* ZerenOne IT Consulting - Main Stylesheet */

:root {
    --primary-dark: #121212;
    --secondary-dark: #1e1e1e;
    --card-dark: #252525;
    --border-dark: #333333;
    --text-light: #f0f0f0;
    --text-muted: #aaaaaa;
    --accent-orange: #ff6b35;
    --accent-orange-dark: #e55a2b;
    --accent-orange-light: rgba(255, 107, 53, 0.1);
    --transition: all 0.3s ease;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 24px rgba(255, 107, 53, 0.15);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: rgba(30, 30, 30, 0.95);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Logo Styling */
.company-logo {
   height: 40px;  /* Increased size */
    width: auto;
    object-fit: contain;  /* ← Add this line to maintain proportions */
}

.logo-fallback {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-fallback .logo-icon {
    color: var(--accent-orange);
    font-size: 2rem;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    display: none;
}

.logo-text span {
    color: var(--accent-orange);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 4px;
    position: relative;
}

nav a:hover {
    color: var(--accent-orange);
    background-color: var(--accent-orange-light);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: var(--transition);
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 80%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--accent-orange);
}

/* Hero Section with Background Image */
.hero {
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(18, 18, 18, 0.5), rgba(30, 30, 30, 0.45));
    z-index: -1;
}*/

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero h1 span {
    color: var(--accent-orange);
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-orange);
    transform: scaleX(0);
    transform-origin: left;
    animation: underline 1.5s ease forwards;
    animation-delay: 1s;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-muted);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.3s both;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-orange);
    color: white;
    padding: 15px 35px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button:hover {
    background-color: var(--accent-orange-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.cta-button:active {
    transform: translateY(-1px);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.cta-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

/* Section Styling */
section {
    padding: 80px 0;
}

.section-dark {
    background-color: var(--secondary-dark);
}

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background-color: var(--accent-orange);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 20px auto 0;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Service Cards with 3D Hover Effect */
.service-card {
    background-color: var(--card-dark);
    border-radius: var(--radius);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-dark);
    position: relative;
    overflow: hidden;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-orange);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-orange);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 25px;
    transition: var(--transition);
}

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

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    margin-top: 20px;
}

.service-features li {
    margin-bottom: 8px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.service-features li::before {
    content: '✓';
    color: var(--accent-orange);
    font-weight: bold;
    margin-right: 10px;
}

/* Company Overview */
.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.overview-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.overview-text h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent-orange);
    bottom: -8px;
    left: 0;
}

.overview-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: var(--card-dark);
    border-radius: var(--radius);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--accent-orange);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-orange);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonials Section */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Show 3 testimonials side by side */
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    min-height: auto; /* Remove fixed height for grid layout */
}

.testimonial-card {
    background-color: var(--card-dark);
    border-radius: var(--radius);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-dark);
    position: relative; /* Change from absolute to relative */
    width: 100%; /* Full width of grid cell */
    opacity: 1; /* Always visible in grid */
    transform: translateY(0); /* No initial transform */
    height: 100%; /* Make all cards equal height */
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-orange);
}

.testimonial-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.quote-icon {
    color: var(--accent-orange);
    font-size: 2rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.testimonial-text {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
    flex-grow: 1;
}

.client-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-dark);
}

.client-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-light);
}

.client-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.rating {
    color: var(--accent-orange);
    margin-top: 10px;
    font-size: 1rem;
}

.rating i {
    margin-right: 2px;
}

/* Testimonial Navigation - HIDE FOR GRID VIEW */
.testimonial-nav {
    display: none; /* Hide navigation for grid view */
}

/* Mobile View - Switch to Carousel */
@media (max-width: 992px) {
    .testimonials-container {
        display: block; /* Switch to block for carousel */
        min-height: 400px; /* Fixed height for carousel */
        position: relative;
    }
    
    .testimonial-card {
        position: absolute;
        width: calc(100% - 20px);
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.5s ease;
        height: auto;
    }
    
    .testimonial-card.active {
        position: relative;
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Show navigation only on mobile */
    .testimonial-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30px;
        margin-top: 40px;
    }
}

/* Testimonial Navigation (for mobile) */
.testimonial-prev,
.testimonial-next {
    background-color: var(--card-dark);
    border: 1px solid var(--border-dark);
    color: var(--text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    gap: 10px;
}

.testimonial-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-dark);
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dots .dot.active {
    background-color: var(--accent-orange);
    transform: scale(1.2);
}

.testimonial-dots .dot:hover {
    background-color: var(--accent-orange);
}

/* Single Testimonial View (for smaller mobile) */
@media (max-width: 768px) {
    .testimonials-container {
        min-height: 450px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .testimonial-nav {
        gap: 20px;
    }
    
    .testimonial-prev,
    .testimonial-next {
        width: 40px;
        height: 40px;
    }
}

/* Tablet - Show 2 testimonials */
@media (min-width: 769px) and (max-width: 992px) {
    .testimonials-container {
        grid-template-columns: repeat(2, 1fr); /* Show 2 on tablet */
    }
    
    .testimonial-card {
        position: relative;
        opacity: 1;
        width: 100%;
    }
    
    .testimonial-nav {
        display: none; /* Hide nav on tablet grid view */
    }
}

/* Process/Workflow */
.process-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 50px;
}

.process-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 0 15px;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -15px;
    width: 30px;
    height: 2px;
    background-color: var(--border-dark);
}

.process-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.2);
}

.step-number {
    width: 80px;
    height: 80px;
    background-color: var(--accent-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background-color: var(--card-dark);
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
    border-left: 4px solid var(--accent-orange);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent-orange);
    margin-top: 5px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background-color: var(--card-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 2px var(--accent-orange-light);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--secondary-dark);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-dark);
}

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

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-about p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--card-dark);
    color: var(--text-light);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-orange);
    transform: translateY(-3px) rotate(5deg);
}

.footer-services h3,
.footer-newsletter h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

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

.footer-services li {
    margin-bottom: 10px;
}

.footer-services a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-services a:hover {
    color: var(--accent-orange);
    transform: translateX(5px);
}

.footer-newsletter p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    background-color: var(--card-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    color: var(--text-light);
}

.newsletter-btn {
    background-color: var(--accent-orange);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background-color: var(--accent-orange-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-dark);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

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

@keyframes underline {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    100% {
        transform: scale(40, 40);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .overview-content {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero {
        min-height: 80vh;
        padding: 120px 0 80px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(30, 30, 30, 0.98);
        padding: 20px;
        box-shadow: var(--shadow);
        backdrop-filter: blur(10px);
        gap: 15px;
    }
    
    nav ul.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .process-step:not(:last-child)::after {
        display: none;
    }
    
    .process-step {
        margin-bottom: 40px;
        flex: 100%;
    }
    
    .hero {
        min-height: 70vh;
        padding: 100px 0 60px;
    }
    
    .logo-fallback .logo-text {
        display: block;
        font-size: 1.5rem;
    }
    
    .stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 80px 0 50px;
        min-height: 60vh;
    }
    
    section {
        padding: 60px 0;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .company-logo {
        height: 30px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-btn {
        padding: 12px;
    }
}

/* Print Styles */
@media print {
    .hero-bg, .hero-overlay {
        display: none;
    }
    
    .hero {
        background: white;
        color: black;
        min-height: auto;
        padding: 50px 0;
    }
    
    .cta-button,
    .mobile-menu-btn,
    .social-links {
        display: none;
    }
    
    a {
        color: black;
        text-decoration: none;
    }
}

/* ===== SEO & PERFORMANCE OPTIMIZATIONS ===== */

/* Ensure tap targets are mobile-friendly */
@media (max-width: 768px) {
    .cta-button,
    nav a,
    .testimonial-prev,
    .testimonial-next,
    .newsletter-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 24px;
    }
    
    /* Optimize font sizes */
    body {
        font-size: 16px;
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
}

/* Performance optimizations */
.company-logo,
.hero-bg img,
.footer-logo {
    content-visibility: auto;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles for better printing */
@media print {
    .hero-bg,
    .hero-overlay,
    .social-links,
    .mobile-menu-btn,
    .testimonial-nav {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}