/* Home Page Specific Styles */

/* Hero Section */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.greeting {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.name {
    display: block;
    font-size: 4rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    transition: font-family 0.3s ease;
}

/* Font cycling classes for dramatic effect */
.name.font-creepster {
    font-family: 'Creepster', cursive;
    font-weight: normal;
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.8), 0 0 60px rgba(255, 0, 0, 0.4);
    letter-spacing: 5px;
    animation: horror 0.5s infinite;
    color: #ff0000;
}

.name.font-faster-one {
    font-family: 'Faster One', cursive;
    font-weight: normal;
    text-shadow: 0 0 25px rgba(0, 255, 255, 0.9), 0 0 50px rgba(0, 255, 255, 0.5);
    letter-spacing: 6px;
    animation: speed 0.3s infinite;
    color: #00ffff;
}

.name.font-fascinate {
    font-family: 'Fascinate', cursive;
    font-weight: normal;
    text-shadow: 0 0 28px rgba(255, 255, 0, 0.8), 0 0 56px rgba(255, 255, 0, 0.4);
    letter-spacing: 4px;
    animation: pulse 0.4s infinite;
    color: #ffff00;
}

.name.font-fascinate-inline {
    font-family: 'Fascinate Inline', cursive;
    font-weight: normal;
    text-shadow: 0 0 32px rgba(0, 255, 0, 0.9), 0 0 64px rgba(0, 255, 0, 0.5);
    letter-spacing: 3px;
    animation: neon 0.6s infinite;
    color: #00ff00;
}

.name.font-griffy {
    font-family: 'Griffy', cursive;
    font-weight: normal;
    text-shadow: 0 0 35px rgba(255, 0, 255, 0.8), 0 0 70px rgba(255, 0, 255, 0.4);
    letter-spacing: 7px;
    animation: magic 0.7s infinite;
    color: #ff00ff;
}

.name.font-henny-penny {
    font-family: 'Henny Penny', cursive;
    font-weight: normal;
    text-shadow: 0 0 22px rgba(255, 165, 0, 0.9), 0 0 44px rgba(255, 165, 0, 0.5);
    letter-spacing: 2px;
    animation: bounce 0.8s infinite;
    color: #ffa500;
}

/* Animations */
@keyframes horror {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.01) rotate(-1deg); }
    50% { transform: scale(0.95) rotate(1deg); }
    75% { transform: scale(1.04) rotate(-0.5deg); }
}

@keyframes speed {
    0%, 100% { transform: translateX(0) scale(1); }
    50% { transform: translateX(10px) scale(1.1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.01); opacity: 0.8; }
}

@keyframes neon {
    0%, 100% { text-shadow: 0 0 32px rgba(0, 255, 0, 0.9), 0 0 64px rgba(0, 255, 0, 0.5); }
    50% { text-shadow: 0 0 50px rgba(0, 255, 0, 1), 0 0 100px rgba(0, 255, 0, 0.8); }
}

@keyframes magic {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.01); opacity: 0.8; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-10px) scale(1.05); }
    50% { transform: translateY(0) scale(0.9); }
    75% { transform: translateY(10px) scale(1.05); }
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-placeholder {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--card-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Skills Table */
.skills table {
    width: 115%;
    max-width: 1400px;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.skills th {
    background: var(--secondary-gradient);
    color: #ffffff;
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 120px;
    width: 15%;
}

.skills td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #3a3a3a;
    vertical-align: middle;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
    width: 99%;
    overflow-x: auto;
    white-space: nowrap;
}

.skills tr:last-child td {
    border-bottom: none;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    flex-shrink: 0;
}

.tech-item:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.tech-item img {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.tech-item span {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .name {
        font-size: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-container {
        padding: 0 1rem;
    }

    /* Skills table responsive */
    .skills table {
        width: 100%;
        font-size: 0.9rem;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .skills tr {
        display: block;
        margin-bottom: 2rem;
        padding: 1rem;
        background: #3d3d3d;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .skills th,
    .skills td {
        display: block;
        width: 100%;
        padding: 1rem;
        gap: 1rem;
        border: none;
        text-align: center;
        min-width: unset; 
        overflow-x: unset;
        flex-wrap: wrap;
        justify-content: center;
        white-space: normal;
    }

    .skills th {
        padding-bottom: 0.5rem;
        font-size: 1.2rem;
        border-bottom: 1px solid #ddd;
        margin-bottom: 1rem;
        background: transparent;
        color: #ffffff;
    }

    .skills td {
        border-bottom: none;
    }

    .tech-item img {
        width: 30px;
        height: 30px;
    }

    .tech-item span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .name {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Skills table responsive */
    .skills table {
        font-size: 0.8rem;
    }
    
    .skills tr {
        padding: 0.8rem;
    }

    .skills th,
    .skills td {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .skills th {
        font-size: 1.1rem;
    }

    .tech-item img {
        width: 25px;
        height: 25px;
    }

    .tech-item span {
        font-size: 0.8rem;
    }
}