/* Enhanced Features CSS - Professional Portfolio */

/* Enhanced Hero Section */
.hero {
    min-height: 100vh;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 60px;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 49%, rgba(0, 212, 170, 0.03) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(0, 112, 243, 0.03) 50%, transparent 51%);
    background-size: 60px 60px;
    animation: codePattern 20s linear infinite;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
}

.profile-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 220px;
    height: 220px;
    position: relative;
    margin: 0 auto;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 
        0 0 0 4px rgba(0, 212, 170, 0.3),
        var(--shadow-glow);
    filter: brightness(1.1) contrast(1.1);
    transition: all var(--transition-normal) ease;
}

.profile-img::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    z-index: -1;
    animation: rotate 3s linear infinite;
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--bg-code);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--code-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.greeting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.wave {
    font-size: 1.5rem;
    animation: wave 1s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 2rem;
    font-weight: 700;
    font-family: 'Fira Code', monospace;
    color: var(--text-primary);
}

.name-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.terminal-container {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.terminal-window-hero {
    background: var(--bg-code);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-normal);
    overflow: hidden;
    box-shadow: var(--shadow-dark);
    max-width: 600px;
    width: 100%;
}

.terminal-header-hero {
    background: var(--bg-darker);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
}

.terminal-buttons-hero {
    display: flex;
    gap: 6px;
}

.btn-red, .btn-yellow, .btn-green {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-red { background: #ff5555; }
.btn-yellow { background: #ffb700; }
.btn-green { background: #50fa7b; }

.terminal-title-hero {
    color: var(--text-secondary);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.terminal-body-hero {
    padding: 20px;
    font-family: 'Fira Code', monospace;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.prompt-symbol {
    color: var(--primary-color);
    font-weight: bold;
}

.command-text {
    color: var(--terminal-blue);
}

.terminal-output {
    margin: 10px 0;
    padding-left: 16px;
}

.hero-subtitle {
    color: var(--code-color);
    font-size: 1.2rem;
    margin: 0;
}

.hero-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Fira Code', monospace;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.social-link {
    width: 60px;
    height: 60px;
    background: var(--bg-code);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal) ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left var(--transition-normal) ease;
    z-index: -1;
}

.social-link:hover::before {
    left: 0;
}

.social-link:hover {
    color: var(--text-primary);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px) scale(1.05);
}

.social-link i {
    font-size: 1.5rem;
    margin-bottom: 4px;
    z-index: 1;
}

.social-label {
    font-size: 0.7rem;
    font-family: 'Fira Code', monospace;
    z-index: 1;
}

/* Enhanced Buttons */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    padding: 14px 32px;
    border: 2px solid transparent;
    border-radius: var(--radius-normal);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal) ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Fira Code', monospace;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    cursor: pointer;
    background: none;
}

.btn-glow {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px rgba(0, 212, 170, 0.5);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-glow:hover .btn-shine {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-code);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.download-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.btn-download:hover .download-progress {
    width: 100%;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    animation: fadeInUp 1s ease 2s both;
}

.scroll-arrow {
    font-size: 1.5rem;
    margin-bottom: 8px;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.8rem;
    font-family: 'Fira Code', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skills Section */
.skills-section {
    background: var(--bg-darker);
    padding: 6rem 0;
    position: relative;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px),
        linear-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
    position: relative;
}

.section-title::before {
    content: '/* ';
    color: var(--text-muted);
    font-size: 0.8em;
}

.section-title::after {
    content: ' */';
    color: var(--text-muted);
    font-size: 0.8em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-family: 'Fira Code', monospace;
}

.section-subtitle::before {
    content: '// ';
    color: var(--text-muted);
}

.skills-container {
    position: relative;
    z-index: 1;
}

.skill-category {
    margin-bottom: 4rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.category-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.category-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-item {
    background: var(--bg-code);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-normal);
    padding: 2rem;
    transition: all var(--transition-normal) ease;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal) ease;
}

.skill-item:hover::before {
    transform: scaleX(1);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.skill-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    fill: currentColor;
}

.skill-info h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: 'Fira Code', monospace;
    text-align: center;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-darker);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    border-radius: 4px;
    transition: width 1s ease-in-out;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-percentage {
    text-align: center;
    color: var(--text-secondary);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-normal) ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* Responsive Design for Enhanced Features */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .social-links {
        gap: 0.8rem;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .profile-img {
        width: 180px;
        height: 180px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .terminal-window-hero {
        margin: 0 10px;
    }
}
