/*
Theme Name: PrafTech
Theme URI: https://praftech.com
Author: Prafull Kumar
Author URI: https://praftech.com
Description: Modern tech learning platform with futuristic design
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: praftech
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cyber-blue: #00d4ff;
    --neon-green: #39ff14;
    --purple: #a855f7;
    --dark-bg: #0a0e27;
    --card-bg: rgba(15, 23, 42, 0.8);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.light-mode {
    --dark-bg: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-primary: #1e293b;
    --text-secondary: #475569;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1729 100%);
    overflow: hidden;
}

.wave {
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    animation: wave 15s linear infinite;
}

.wave:nth-child(2) {
    animation-delay: 5s;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.1), transparent);
}

.wave:nth-child(3) {
    animation-delay: 10s;
    background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.1), transparent);
}

@keyframes wave {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--cyber-blue);
    border-radius: 50%;
    animation: float 20s infinite;
    opacity: 0.6;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-100px) translateX(50px); }
    50% { transform: translateY(-50px) translateX(100px); }
    75% { transform: translateY(-150px) translateX(25px); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--cyber-blue), var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo a {
    text-decoration: none;
    background: linear-gradient(135deg, var(--cyber-blue), var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--cyber-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyber-blue);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-btn, .theme-toggle {
    background: transparent;
    border: 2px solid var(--cyber-blue);
    color: var(--cyber-blue);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.search-btn:hover, .theme-toggle:hover {
    background: var(--cyber-blue);
    color: var(--dark-bg);
    transform: scale(1.05);
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    backdrop-filter: blur(10px);
}

.search-modal.active {
    display: flex;
}

.search-box {
    width: 90%;
    max-width: 700px;
    background: var(--card-bg);
    border-radius: 30px;
    padding: 2rem;
    border: 2px solid var(--cyber-blue);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-input-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--cyber-blue);
    border-radius: 30px;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-close {
    background: transparent;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    padding: 1rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.search-close:hover {
    background: var(--neon-green);
    color: var(--dark-bg);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 5% 4rem;
    gap: 3rem;
}

.hero-content {
    flex: 1;
    animation: fadeInLeft 1s ease;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--cyber-blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyber-blue), var(--purple));
    color: white;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
}

.btn-secondary:hover {
    background: var(--neon-green);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInRight 1s ease;
}

.photo-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.photo-frame {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyber-blue), var(--purple), var(--neon-green));
    padding: 5px;
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.photo-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.photo-placeholder {
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(168, 85, 247, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--cyber-blue);
}

.tech-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: floatIcons 20s infinite;
}

@keyframes floatIcons {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.tech-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid var(--cyber-blue);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
    50% { transform: scale(1.1); box-shadow: 0 0 40px rgba(0, 212, 255, 0.6); }
}

.tech-icon:nth-child(1) { top: 0; right: 20%; }
.tech-icon:nth-child(2) { bottom: 10%; left: 0; }
.tech-icon:nth-child(3) { top: 20%; left: -10%; }
.tech-icon:nth-child(4) { bottom: 30%; right: -10%; }

/* Sections */
section {
    padding: 5rem 5%;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--cyber-blue), var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.3);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(168, 85, 247, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.blog-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.blog-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--cyber-blue);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    gap: 1rem;
}

/* Footer */
footer {
    background: rgba(10, 14, 39, 0.95);
    padding: 3rem 5%;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--cyber-blue);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--cyber-blue);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 2px solid var(--cyber-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyber-blue);
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--cyber-blue);
    color: var(--dark-bg);
    transform: scale(1.2);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--text-secondary);
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--cyber-blue), var(--purple));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.5);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.8);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--cyber-blue);
    transition: all 0.3s;
}

/* Animations */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 14, 39, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        flex-direction: column-reverse;
        padding: 6rem 5% 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .photo-container {
        width: 300px;
        height: 300px;
    }

    .section-title {
        font-size: 2rem;
    }
}