:root {
    --bg-color: #ffffff;
    --text-dark: #333333;
    --text-red: #ff0000;
    --text-gray: #666666;
    --card-border: rgba(255, 0, 0, 0.2);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Tech Pattern Background */
.tech-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(255, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: -1;
}

/* Time Display */
.time-display {
    position: fixed;
    top: 20px;
    right: 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    z-index: 1000;
    text-align: right;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px;
    border: 1px solid var(--card-border);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(45deg, #ff0000, #ff3333);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

/* Main Content */
.main-content {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 140px);
}

/* Tech Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.tech-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

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

.tech-card:hover::before {
    left: 100%;
}

.tech-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.1);
}

/* Tech Button */
.tech-button {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--text-red);
    color: var(--text-red);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tech-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--text-red);
    transition: 0.5s;
    z-index: -1;
}

.tech-button:hover::before {
    width: 100%;
}

.tech-button:hover {
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-text {
    text-align: center;
    margin-bottom: 40px;
}

.hero-text span {
    display: block;
    font-size: 5vw;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 4px;
    background: linear-gradient(45deg, #ff0000, #ff3333);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

.hero-text span:nth-child(2) { animation-delay: 0.2s; }
.hero-text span:nth-child(3) { animation-delay: 0.4s; }

.subline {
    font-size: 1.5vw;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 0.5s forwards 0.6s;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-link {
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid var(--card-border);
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-link:hover {
    background: var(--text-red);
    color: white;
    border-color: var(--text-red);
}

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

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Stats Counter */
.stats-counter {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--text-red);
    margin: 10px 0;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--text-red) var(--scroll), transparent 0);
    z-index: 1000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-text span {
        font-size: 8vw;
    }
    
    .subline {
        font-size: 3vw;
    }
}

/* Target the logo using the ID set in HTML */
#site-logo {
    /* 1. Set the maximum height for the logo (e.g., 80 pixels) */
    max-height: 130px; 
    
    /* 2. Crucial for maintaining aspect ratio. The width automatically adjusts. */
    height: auto; 

    /* 3. Ensures the logo shrinks if its container gets smaller */
    max-width: 90%; 
    
    /* 4. Optional: adds spacing around the logo */
    margin: 15px 0; 
}