:root {
    --primary-bg: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #333333;
    --accent-color: #4a90e2;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.12);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--primary-bg);
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    perspective: 1000px;
}

/* Header */
.site-header {
    width: 100%;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
}

.lang-selector {
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    font-family: var(--font-main);
    font-size: 14px;
    color: #2c3e50;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.lang-selector:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    margin-right: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2) translateY(5px);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 28px;
    font-weight: 900;
    color: #2c3e50;
    letter-spacing: -1px;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 13px;
    color: #7f8c8d;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Side Panels */
.side-panel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.left-panel {
    left: 40px;
}

.right-panel {
    right: 40px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 5px;
}

.panel-title {
    font-size: 10px;
    font-weight: 700;
    color: #7f8c8d;
    letter-spacing: 1px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #e74c3c;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.active {
    background-color: #2ecc71;
}

.panel-footer {
    font-size: 9px;
    color: #95a5a6;
    text-align: right;
    letter-spacing: 1px;
}

/* DNA Animation */
.dna-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 5px 0;
}

.dna-bar {
    height: 4px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    border-radius: 2px;
    opacity: 0.5;
    animation: dnaScan 1.5s infinite ease-in-out;
}

.dna-bar:nth-child(odd) {
    width: 60%;
    align-self: flex-start;
    animation-delay: 0s;
}

.dna-bar:nth-child(even) {
    width: 60%;
    align-self: flex-end;
    animation-delay: 0.75s;
}

@keyframes dnaScan {
    0%, 100% {
        opacity: 0.3;
        width: 40%;
    }
    50% {
        opacity: 1;
        width: 90%;
    }
}

/* Status Bars */
.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    color: #34495e;
    margin-bottom: 5px;
}

.progress-track {
    width: 80px;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #3498db;
    border-radius: 2px;
    animation: progressMove 3s infinite ease-in-out;
}

.p1 {
    width: 40%;
    animation-delay: 0s;
    background: #3498db;
}

.p2 {
    width: 70%;
    animation-delay: 0.5s;
    background: #9b59b6;
}

.p3 {
    width: 55%;
    animation-delay: 1s;
    background: #2ecc71;
}

@keyframes progressMove {
    0% { width: 30%; }
    50% { width: 80%; }
    100% { width: 30%; }
}

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

/* Hide on smaller screens */
@media (max-width: 1200px) {
    .side-panel {
        display: none;
    }
}

/* Footer */
.site-footer {
    width: 100%;
    padding: 12px 20px;
    text-align: center;
    z-index: 50;
    flex-shrink: 0;
}

.site-footer p {
    font-size: 11px;
    color: #95a5a6;
    letter-spacing: 0.5px;
}

/* Background Elements */
.background-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 50% 100%, rgba(255, 87, 34, 0.15) 0%, rgba(255, 255, 255, 0) 60%);
    transition: background 0.5s ease;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    transition: background-color 0.8s ease, transform 1s ease;
}

/* Floating Particles */
.particle {
    position: absolute;
    bottom: -20px;
    background: rgba(255, 87, 34, 0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: riseUp 4s linear forwards;
}

.particle-icon {
    position: absolute;
    bottom: -50px;
    font-size: 24px;
    opacity: 0.2;
    pointer-events: none;
    animation: riseUpIcon 8s linear forwards;
    color: #2c3e50;
}

@keyframes riseUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) scale(0);
        opacity: 0;
    }
}

@keyframes riseUpIcon {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 0.15;
    }
    80% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-110vh) rotate(360deg);
        opacity: 0;
    }
}

.c1 {
    width: 400px;
    height: 400px;
    background: #a8edea;
    top: -100px;
    left: -100px;
}

.c2 {
    width: 500px;
    height: 500px;
    background: #fed6e3;
    bottom: -150px;
    right: -150px;
}

/* Main Container - Grid Layout */
.container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
    gap: 30px;
}

/* Dino Character */
.dino-wrapper {
    width: 180px;
    height: 180px;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.dino-head-rig {
    width: 100%;
    height: 100%;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dino-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* Grid Container for Cards */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 1000px;
}

/* Tool Cards - Grid Layout */
.tool-card {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 200px;
    background: var(--card-bg);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow-light);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, filter 0.3s ease;
    z-index: 20;
    cursor: pointer;
    padding: 20px;
    overflow: hidden;
}

.tool-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: var(--shadow-hover);
    filter: brightness(1.02);
}

.card-image {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.card-content {
    text-align: center;
}

.tool-name {
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 6px;
    display: block;
    color: #2c3e50;
}

.tool-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    font-weight: 400;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .dino-wrapper {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 12px 20px;
    }
    
    .brand-title {
        font-size: 22px;
    }
    
    .brand-subtitle {
        font-size: 11px;
    }
    
    .container {
        padding: 0 20px;
        gap: 20px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 400px;
    }
    
    .dino-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .tool-card {
        min-height: 160px;
        padding: 16px;
    }
    
    .card-image {
        height: 80px;
    }
    
    .tool-name {
        font-size: 15px;
    }
    
    .tool-desc {
        font-size: 11px;
    }
}