/* Index Page Styles */

.hero-section {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #0F0F23 0%, #1A1A2E 50%, #0F0F23 100%);
}
.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-image {
    flex-shrink: 0;
}

.hero-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 3px solid rgba(255, 215, 0, 0.3);
    object-fit: cover;
    transition: all 0.3s ease;
}

.hero-image img:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 700;
}

.name-gradient {
    background: linear-gradient(45deg, #FFD700, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typewriter-container {
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.typewriter-text {
    font-size: 1.5rem;
    color: #FFD700;
    font-weight: 500;
    min-width: 280px;
    display: inline-block;
}

.typewriter-text .cursor {
    font-size: 1.5rem;
    color: #FFD700;
    animation: blink 1s infinite;
}

.cursor {
    font-size: 1.5rem;
    color: #FFD700;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #FFD700;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
    color: #FFD700;
}

.social-link img {
    width: 20px;
    height: 20px;
}

.social-link i {
    font-size: 1.2rem;
}

.rootme-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.rootme-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Projects Section */
.projects-section {
    background: rgba(255, 255, 255, 0.02);
}

/* Posts Section */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.posts-section .post-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.posts-section .post-card:hover {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2);
}

.posts-section .post-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.posts-section .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.posts-section .post-card:hover .post-image img {
    transform: scale(1.05);
}

.posts-section .post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.posts-section .post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    flex-wrap: wrap;
}

.posts-section .post-type {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.posts-section .ctf-name {
    background: rgba(255, 140, 0, 0.1);
    color: #FF8C00;
    border: 1px solid rgba(255, 140, 0, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.posts-section .post-title {
    margin-bottom: 1rem;
    flex: 1;
}

.posts-section .post-title a {
    color: #FFD700;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.posts-section .post-title a:hover {
    color: #FF8C00;
}

.posts-section .post-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* Contact Section */
.contact-section {
    background: rgba(255, 255, 255, 0.02);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.contact-item i {
    font-size: 2rem;
    color: #FFD700;
}

.contact-item h3 {
    margin: 0 0 0.5rem 0;
    color: #FFD700;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #FFD700;
}

.contact-item span {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        gap: 2rem;
    }
    
    .hero-image img {
        width: 250px;
        height: 250px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .contact-info {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .typewriter-container {
        justify-content: center;
    }
    
    .typewriter-text {
        font-size: 1.2rem;
        min-width: 200px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-link {
        padding: 0.5rem 1rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .section-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .section-cta .btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-image img {
        width: 200px;
        height: 200px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 200px;
        justify-content: center;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}