/*
Theme Name: Indolent
Theme URI: https://indolent.co
Author: Indolent Agency
Author URI: https://indolent.co
Description: Professional corporate theme for Indolent - Web Design, Software Development & Consulting Agency
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: indolent
*/

/* ===== CSS Variables ===== */
:root {
    /* Brand Colors - Updated to match new logo (deeper crimson red) */
    --brand-red: #C22D2A;
    --brand-red-dark: #9E2321;
    --brand-red-light: #E54643;
    --brand-black: #070707;
    --brand-white: #FEFDFD;

    /* Main theme colors */
    --primary-color: #C22D2A;
    --primary-dark: #9E2321;
    --primary-light: #E54643;
    --text-dark: #070707;
    --text-gray: #4a5568;
    --text-light: #718096;
    --bg-white: #FEFDFD;
    --bg-gray: #f7fafc;
    --bg-gradient: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
    --border-color: #e2e8f0;

    /* Red gradients only */
    --gradient-red: linear-gradient(135deg, #C22D2A 0%, #9E2321 100%);
    --gradient-red-light: linear-gradient(135deg, #E54643 0%, #C22D2A 100%);
    --gradient-black-red: linear-gradient(135deg, #070707 0%, #C22D2A 100%);

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Inter', 'Helvetica Neue', Arial, sans-serif;

    /* Transitions & Shadows */
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15), 0 10px 10px rgba(0,0,0,0.04);
    --shadow-red: 0 10px 30px rgba(194, 45, 42, 0.3);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Container & Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    max-width: 100%;
    padding: 0 40px;
}

.section {
    padding: 80px 0;
}

.section-small {
    padding: 60px 0;
}

/* ===== Header ===== */
.site-header {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(7, 7, 7, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 4px solid var(--brand-red);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo-img {
    height: 90px !important;
    width: auto !important;
    max-width: 280px;
    filter: drop-shadow(2px 2px 6px rgba(194, 45, 42, 0.25));
    transition: all 0.3s ease;
}

.site-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(4px 4px 12px rgba(194, 45, 42, 0.35));
}

.logo-link {
    display: flex;
    align-items: center;
}

.site-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-left: 10px;
}

/* ===== Navigation ===== */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin-left: 30px;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 10px 20px;
    position: relative;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background: rgba(194, 45, 42, 0.1);
    color: var(--brand-red);
    transform: translateY(-2px);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--brand-red);
    transition: var(--transition);
    border-radius: 2px;
}

.main-navigation a:hover::after,
.main-navigation a.current::after,
.main-navigation .current-menu-item a::after {
    width: 80%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--brand-red);
    margin: 6px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-red);
    color: white;
    box-shadow: 0 4px 15px rgba(194, 45, 42, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(194, 45, 42, 0.6);
    background: var(--brand-red);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: var(--brand-red);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(194, 45, 42, 0.5);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, #070707 0%, #C22D2A 50%, #9E2321 100%);
    padding: 140px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(194, 45, 42, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(7, 7, 7, 0.4) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: rotate 60s linear infinite;
    opacity: 0.3;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

.hero-section h1,
.hero-section p {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-red);
}

.service-card:nth-child(1) .service-icon { background: var(--gradient-red); }
.service-card:nth-child(2) .service-icon { background: var(--gradient-red-light); }
.service-card:nth-child(3) .service-icon { background: var(--gradient-black-red); }
.service-card:nth-child(4) .service-icon { background: var(--brand-red); }
.service-card:nth-child(5) .service-icon { background: var(--brand-red-dark); }
.service-card:nth-child(6) .service-icon { background: var(--brand-black); }

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.service-icon svg {
    width: 35px;
    height: 35px;
    fill: white;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
}

/* ===== Portfolio Section ===== */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--brand-red);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(194, 45, 42, 0.4);
}

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

.portfolio-item {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.portfolio-item:hover {
    transform: translateY(-10px) rotate(-1deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-item:nth-child(even):hover {
    transform: translateY(-10px) rotate(1deg);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    position: relative;
}

.portfolio-image.portfolio-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.portfolio-content {
    padding: 25px;
    background: linear-gradient(180deg, white 0%, #fafafa 100%);
}

.portfolio-category {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.portfolio-item:nth-child(6n+1) .portfolio-category {
    background: var(--gradient-red);
}

.portfolio-item:nth-child(6n+2) .portfolio-category {
    background: var(--brand-red);
}

.portfolio-item:nth-child(6n+3) .portfolio-category {
    background: var(--gradient-black-red);
}

.portfolio-item:nth-child(6n+4) .portfolio-category {
    background: var(--brand-red-dark);
}

.portfolio-item:nth-child(6n+5) .portfolio-category {
    background: var(--gradient-red-light);
}

.portfolio-item:nth-child(6n+6) .portfolio-category {
    background: var(--brand-black);
}

.portfolio-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.portfolio-description {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--primary-light);
}

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

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

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .hero-title {
        font-size: 2.5rem;
    }

    .header-wrapper {
        padding: 15px 0;
    }

    .site-logo-img {
        height: 70px !important;
        max-width: 220px;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 100px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 100px);
        background-color: white;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        overflow-y: auto;
    }

    .main-navigation.active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 20px;
    }

    .main-navigation li {
        margin: 10px 0;
    }

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

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

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

    .section {
        padding: 50px 0;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
