/* ============================================
   JOFAMWEBDEV GRAPHIC DESIGN PAGE STYLES
   Version: 1.0
   Author: Jofawebdev
   Description: Custom styles for Graphic Design services page
   ============================================ */

/* ===== CUSTOM PROPERTIES (CSS VARIABLES) ===== */
:root {
    /* Primary Colors */
    --primary-color: #6f42c1; /* Purple - main design color */
    --primary-light: #8c68d1;
    --primary-dark: #5a32a3;
    
    /* Secondary Colors */
    --secondary-color: #3498db; /* Blue */
    --success-color: #2ecc71; /* Green */
    --warning-color: #f39c12; /* Orange/Yellow */
    --danger-color: #e74c3c; /* Red */
    
    /* Design Tool Colors */
    --illustrator-orange: #FF6B35;
    --canva-blue: #00C4CC;
    --creative-purple: #9B59B6;
    
    /* Neutral Colors */
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gray-color: #95a5a6;
    --white-color: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--creative-purple) 100%);
    --gradient-hero: linear-gradient(135deg, #2c3e50 0%, #4a235a 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.1);
    --shadow-xl: 0 12px 24px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-circle: 50%;
}

/* ===== GLOBAL STYLES ===== */
.graphic-design-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container adjustments */
.container {
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Utility Classes */
.max-width-800 {
    max-width: 800px;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* ===== HERO SECTION ===== */
.graphic-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    color: var(--white-color);
    padding-top: 76px; /* Account for fixed navbar */
    overflow: hidden;
}

/* Hero Pattern Background */
.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(111, 66, 193, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 196, 204, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.graphic-hero-section > .container {
    position: relative;
    z-index: 1;
}

/* Design Tool Badges */
.design-tool-badge {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.design-tool-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--white-color);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    text-align: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== DESIGN SERVICE CARDS ===== */
.design-service-card {
    background: var(--white-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    height: 100%;
    transition: all var(--transition-normal);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.design-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

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

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

.design-service-icon {
    width: 70px;
    height: 70px;
    background: rgba(111, 66, 193, 0.1);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

.design-service-card:hover .design-service-icon {
    background: var(--gradient-primary);
    color: var(--white-color);
    transform: scale(1.1) rotate(5deg);
}

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

.design-service-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.design-service-list li:last-child {
    border-bottom: none;
}

/* ===== DESIGN TOOL CARDS ===== */
.design-tool-card {
    transition: all var(--transition-normal);
    height: 100%;
}

.design-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.design-tool-icon-lg {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

/* Tool Selection Guide */
.tool-selection-guide {
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

/* ===== DESIGN PROCESS ===== */
.process-step {
    text-align: center;
    padding: 20px;
    position: relative;
}

.process-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(111, 66, 193, 0.1);
    line-height: 1;
    margin-bottom: 10px;
}

.process-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: var(--white-color);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.process-step:hover .process-icon {
    transform: scale(1.1) rotate(10deg);
}

/* Process Timeline */
.process-timeline {
    position: relative;
    height: 4px;
    background: rgba(111, 66, 193, 0.1);
    border-radius: 2px;
    margin: 40px auto;
    max-width: 800px;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 12.5%;
    width: 75%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.timeline-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--white-color);
    border: 4px solid var(--primary-color);
    border-radius: var(--radius-circle);
    box-shadow: var(--shadow-md);
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: var(--white-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--white-color);
    border-color: transparent;
    transform: translateY(-2px);
}

.portfolio-card {
    background: var(--white-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    height: 100%;
}

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

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white-color);
}

/* Different placeholder styles */
.logo-design {
    background: linear-gradient(135deg, var(--illustrator-orange) 0%, #ff8e53 100%);
}

.social-media {
    background: linear-gradient(135deg, var(--canva-blue) 0%, #00a8af 100%);
}

.business-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.infographic {
    background: linear-gradient(135deg, var(--success-color) 0%, #27ae60 100%);
}

.presentation {
    background: linear-gradient(135deg, var(--creative-purple) 0%, #8e44ad 100%);
}

.brochure {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d35400 100%);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    padding: 20px;
}

.portfolio-info {
    padding: 20px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.tag {
    padding: 4px 12px;
    background: rgba(111, 66, 193, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== DESIGN PACKAGES ===== */
.design-package-card {
    background: var(--white-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    height: 100%;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
    box-shadow: var(--shadow-md);
}

.design-package-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.design-package-card.popular {
    border-color: var(--warning-color);
    transform: translateY(-5px);
}

.design-package-card.popular:hover {
    transform: translateY(-15px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--warning-color);
    color: var(--white-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.package-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.package-price {
    margin: 15px 0;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.package-subtitle {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.package-features {
    margin-bottom: 30px;
}

.package-features ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.package-features ul li:last-child {
    border-bottom: none;
}

.custom-package-card {
    border: 2px dashed var(--primary-color);
    transition: all var(--transition-normal);
}

.custom-package-card:hover {
    border-style: solid;
    background: rgba(111, 66, 193, 0.05);
}

/* ===== FAQ SECTION ===== */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    background: var(--white-color);
    color: var(--dark-color);
    font-weight: 600;
    padding: 20px;
    border: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: var(--white-color);
    box-shadow: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232c3e50'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 20px;
    background: var(--white-color);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    /* Mobile Typography */
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    /* Mobile Hero */
    .graphic-hero-section {
        min-height: 80vh;
        padding-top: 70px;
    }
    
    /* Mobile Portfolio Filter */
    .portfolio-filter {
        padding: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    /* Mobile Design Cards */
    .design-service-card,
    .design-package-card {
        padding: 20px;
    }
    
    .process-step {
        padding: 10px;
    }
    
    .process-number {
        font-size: 3rem;
    }
    
    .process-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Mobile Timeline */
    .process-timeline {
        display: none; /* Hide on mobile for better UX */
    }
}

/* Medium Devices (Tablets) */
@media (max-width: 992px) {
    .portfolio-image {
        height: 200px;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
}

/* Animation Classes */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Print Styles */
@media print {
    .graphic-hero-section,
    .portfolio-filter,
    .custom-package-card,
    footer {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: none;
    }
}