:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --dark-bg: #0a0e27;
    --card-bg: rgba(255, 255, 255, 0.95);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-color: rgba(255, 255, 255, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    color: #ffffff;
    overflow-x: hidden;
}

/* Hero Section Styles */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1d4a 50%, #2d3561 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: bgShift 20s ease-in-out infinite;
}

@keyframes bgShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

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

.hero-badge {
    display: inline-block;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 12px 24px;
    backdrop-filter: blur(20px);
    margin-bottom: 2rem;
    animation: slideInDown 1s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: slideInUp 1s ease-out 0.2s both;
}

.gradient-text {
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 3rem;
    animation: slideInUp 1s ease-out 0.4s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: slideInUp 1s ease-out 0.6s both;
}

.btn-modern {
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: white;
    border: 1px solid var(--border-color);
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(102, 126, 234, 0.6);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    animation: slideInUp 1s ease-out 0.8s both;
}

.stat-item {
    text-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #667eea;
}

/* GPU Cards Section */
.cards-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1d4a 0%, #2d3561 50%, #0a0e27 100%);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.gpu-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 2rem;
    height: 100%;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

.gpu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 24px 24px 0 0;
}

.gpu-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.98);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.badge-popular { background: var(--warning-gradient); }
.badge-premium { background: var(--secondary-gradient); }
.badge-value { background: var(--success-gradient); }

.gpu-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
}

.card-location {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.specs-grid {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px dashed rgba(102, 126, 234, 0.2);
}

.spec-row:last-child { border-bottom: none; }

.spec-label { color: var(--text-secondary); font-weight: 600; }
.spec-value { font-weight: 700; color: var(--text-primary); }

.gpu-pricing { text-align: center; margin-bottom: 2rem; }

.price-display {
    background: var(--primary-gradient);
    color: white;
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.price-amount { font-size: 2.2rem; font-weight: 900; line-height: 1; }
.price-period { opacity: 0.9; font-weight: 600; }

.price-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.price-option.full { grid-column: 1 / -1; }

.price-option {
    border-radius: 12px;
    padding: 0.75rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: #fff;
}
.price-option:nth-child(1) {
    --accent-start: #3498db;
    --accent-end: #2980b9;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    border: 1px solid rgba(41,128,185,0.5);
    box-shadow: 0 6px 20px rgba(41,128,185,0.35);
}
.price-option:nth-child(2) {
    --accent-start: #27ae60;
    --accent-end: #2ecc71;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    border: 1px solid rgba(39,174,96,0.5);
    box-shadow: 0 6px 20px rgba(39,174,96,0.35);
}
.price-option.full {
    --accent-start: #f39c12;
    --accent-end: #e67e22;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end)) !important;
    border: 1px solid rgba(243,156,18,0.5) !important;
    box-shadow: 0 6px 20px rgba(243,156,18,0.35) !important;
    position: relative;
}
.price-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
}
.price-option .price-badge { background: linear-gradient(135deg, var(--accent-start, rgba(255,255,255,0.12)), var(--accent-end, rgba(255,255,255,0.12))); border-color: rgba(255,255,255,0.35); }
.price-option .price-badge.best { border-color: rgba(255,215,0,0.6); box-shadow: 0 0 0 1px rgba(255,215,0,0.35) inset; }
.price-option .price-badge.promo { background: linear-gradient(135deg, var(--accent-start, #f59e0b), var(--accent-end, #d97706)); border-color: rgba(255,255,255,0.35); }
.price-option .price-badge.sale { background: linear-gradient(135deg, #ef4444, #dc2626); border-color: rgba(239,68,68,0.6); }
.price-badge-muted { background: rgba(255,255,255,0.08); }
.price-old { text-decoration: line-through; opacity: 0.8; margin-right: 8px; }
.price-new { font-weight: 800; }
.price-save { opacity: 0.95; font-weight: 700; }

.price-option:hover { filter: brightness(1.05); transform: translateY(-2px); }

.card-actions { display: flex; gap: 0.75rem; }

.btn-card {
    flex: 1;
    padding: 12px 20px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-rent { background: var(--primary-gradient); color: white; }

.btn-quick {
    width: 50px;
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.btn-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); }

/* Features Section */
.features-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #2d3561 0%, #1a1d4a 50%, #0a0e27 100%);
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
    height: 100%;
}

.feature-card:hover { transform: translateY(-8px); background: rgba(255, 255, 255, 0.15); }

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    color: white;
}

.feature-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 1rem; }
.feature-description { opacity: 0.9; line-height: 1.6; }

/* Modal Styles */
.modal-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: white;
    border-radius: 24px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--primary-gradient);
    color: white;
    border-radius: 24px 24px 0 0;
}

.modal-body { padding: 2rem; color: var(--text-primary); }

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover { background: rgba(255, 255, 255, 0.3); }

/* Animation Classes */
@keyframes slideInDown { from { opacity: 0; transform: translateY(-30px);} to { opacity: 1; transform: translateY(0);} }
@keyframes slideInUp { from { opacity: 0; transform: translateY(30px);} to { opacity: 1; transform: translateY(0);} }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .cta-buttons { flex-direction: column; }
    .btn-modern { width: 100%; text-align: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .filter-group { grid-template-columns: 1fr; }
    .gpu-card { padding: 1.5rem; }
}

@media (max-width: 576px) {
    .stats-grid { grid-template-columns: 1fr; }
    .price-options { grid-template-columns: 1fr; }
}

/* Utility Classes */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern GPU Card Refresh */
.gpu-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 2rem;
    height: 100%;
    backdrop-filter: blur(24px);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, background 0.45s ease;
}

.gpu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 24px 24px 0 0;
    z-index: 1;
}

.gpu-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(102, 126, 234, 0.06), transparent 40%),
        radial-gradient(120% 120% at 100% 100%, rgba(118, 75, 162, 0.06), transparent 40%),
        linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
    mix-blend-mode: screen;
    transform: translateX(-120%);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.gpu-card:hover {
    transform: perspective(1000px) translateY(-12px) scale(1.01) rotateY(4deg);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 1);
}

.gpu-card:hover::after { transform: translateX(120%); }

.gpu-icon { position: relative; width: 88px; height: 88px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 1.5rem; background: var(--primary-gradient); color: white; box-shadow: 0 18px 40px rgba(102, 126, 234, 0.35); transition: transform 0.35s ease; z-index: 2; }

.gpu-icon::after { content: ''; position: absolute; inset: -8px; border-radius: 26px; background: conic-gradient(from 0deg, rgba(102,126,234,0.45), rgba(118,75,162,0.45), rgba(240,147,251,0.45), rgba(102,126,234,0.45)); filter: blur(12px); z-index: 1; opacity: 0.5; }

.gpu-card:hover .gpu-icon { transform: translateY(-2px) scale(1.03); }

.card-badge { border: 1px solid rgba(255, 255, 255, 0.35); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }

.specs-grid { background: rgba(102, 126, 234, 0.05); border-radius: 16px; padding: 1.25rem; margin-bottom: 1.5rem; border: 1px solid rgba(102, 126, 234, 0.12); }

.spec-row { display: flex; justify-content: space-between; padding: 0.75rem 0.5rem; border-bottom: 1px dashed rgba(102, 126, 234, 0.2); transition: background 0.25s ease; }

.spec-row:last-child { border-bottom: none; }
.spec-row:hover { background: rgba(102, 126, 234, 0.06); }

.price-display { position: relative; background: var(--primary-gradient); color: white; padding: 1.5rem; border-radius: 20px; margin-bottom: 1rem; box-shadow: 0 14px 36px rgba(102, 126, 234, 0.35); overflow: hidden; }

.price-display::after { content: ''; position: absolute; top: 0; left: -160%; width: 60%; height: 100%; background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%); transform: skewX(-20deg); }
.gpu-card:hover .price-display::after { animation: shineSweep 1.1s ease-out; }

@keyframes shineSweep { from { left: -160%; } to { left: 160%; } }

.btn-card { border: 1px solid rgba(102, 126, 234, 0.25); }
.btn-card.btn-rent { background: var(--primary-gradient); color: white; box-shadow: 0 14px 32px rgba(102, 126, 234, 0.35); }
.btn-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,0.18); }
.btn-quick { background: var(--glass-bg); color: var(--text-primary); border: 1px solid rgba(102, 126, 234, 0.25); }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) { .gpu-card, .gpu-card::after, .gpu-icon, .price-display::after { transition: none !important; animation: none !important; } }

/* Compact layout overrides */
.cards-section { padding: 70px 0 !important; }
.features-section { padding: 80px 0 !important; }
.filters-bar { padding: 1.25rem !important; }
.cards-section .row { row-gap: 1.25rem; }

.gpu-card { padding: 1.25rem !important; border-radius: 20px !important; box-shadow: 0 14px 40px rgba(0,0,0,0.2) !important; }
.gpu-card:hover { transform: translateY(-8px) scale(1.008) !important; box-shadow: 0 22px 60px rgba(0,0,0,0.25) !important; }

.gpu-icon { width: 64px !important; height: 64px !important; border-radius: 16px !important; font-size: 1.8rem !important; margin-bottom: 1rem !important; }
.card-title { font-size: 1.2rem !important; margin-bottom: 0.25rem !important; }
.card-location { margin-bottom: 1rem !important; font-size: 0.95rem !important; }

.specs-grid { padding: 1rem !important; margin-bottom: 1rem !important; }
.spec-row { padding: 0.5rem 0.5rem !important; }

.price-display { padding: 1rem !important; margin-bottom: 0.75rem !important; }
.price-amount { font-size: 1.6rem !important; }
.price-options { gap: 0.5rem !important; }
.price-option { padding: 0.5rem !important; font-size: 0.9rem !important; }

.card-actions { gap: 0.5rem !important; }
.btn-card { padding: 10px 14px !important; border-radius: 12px !important; font-size: 0.95rem !important; }

@media (max-width: 1200px) {
    .gpu-card { padding: 1rem !important; }
    .gpu-icon { width: 56px !important; height: 56px !important; font-size: 1.6rem !important; }
    .price-amount { font-size: 1.4rem !important; }
}
@media (max-width: 768px) {
    .cards-section { padding: 56px 0 !important; }
    .gpu-card { padding: 0.9rem !important; }
    .card-title { font-size: 1.1rem !important; }
    .btn-card { padding: 10px 12px !important; font-size: 0.9rem !important; }
}

/* Override global styles for subtitle in cards section */
.cards-section .section-subtitle { color: rgba(255, 255, 255, 0.9) !important; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }

/* Glass-style cards to match home page aesthetics */
.cards-section .gpu-card { background: var(--glass-bg) !important; border: 1px solid var(--border-color) !important; color: #ffffff !important; }
.cards-section .gpu-card:hover { background: rgba(255,255,255,0.14) !important; box-shadow: 0 28px 80px rgba(0,0,0,0.35) !important; }
.cards-section .card-title { color: #ffffff !important; }
.cards-section .card-location { color: rgba(255,255,255,0.85) !important; }
.cards-section .specs-grid { background: rgba(255,255,255,0.06) !important; border: 1px solid rgba(255,255,255,0.15) !important; }
.cards-section .spec-label { color: rgba(255,255,255,0.75) !important; }
.cards-section .spec-value { color: #ffffff !important; }
.cards-section .btn-card { border: 1px solid rgba(255,255,255,0.3) !important; }
.cards-section .btn-quick { background: rgba(255,255,255,0.08) !important; color: #ffffff !important; border: 1px solid rgba(255,255,255,0.25) !important; }
.cards-section .gpu-icon { box-shadow: 0 14px 36px rgba(255,255,255,0.18) !important; }

/* Local override: feature descriptions (independent from global style.css) */
.features-section .feature-description { color: rgba(255, 255, 255, 0.9) !important; line-height: 1.7 !important; font-size: 1.05rem !important; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); margin: 0; }
@media (max-width: 768px) { .features-section .feature-description { font-size: 1rem !important; line-height: 1.6 !important; } }

/* Pulse animation used in CPU usage bars */
@keyframes pulse {
    0%, 100% { transform: scaleY(1); opacity: 0.7; }
    50% { transform: scaleY(1.1); opacity: 1; }
} 