/*
Theme Name: Anil Portfolio - Elementor Ready
Theme URI: https://anilpooniya.com
Author: Anil Pooniya
Author URI: https://anilpooniya.com
Description: Professional portfolio theme with full Elementor support. Custom-coded with drag-and-drop editing capability.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: anil-portfolio
Tags: portfolio, responsive, seo-friendly, elementor, drag-and-drop, custom-menu
*/

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --text: #334155;
    --light: #f8fafc;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    line-height: 1.6; 
    color: var(--text); 
    background: var(--light); 
    overflow-x: hidden; 
}

/* WordPress Alignments */
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; }

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span { color: var(--primary); }

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover, .nav-menu .current-menu-item a { color: var(--primary); }

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-menu a:hover::after, .nav-menu .current-menu-item a::after { width: 100%; }

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--secondary);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 6rem 4rem;
    background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.3;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

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

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.highlight {
    color: var(--accent);
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-content p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 500px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-number { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.9rem; color: #94a3b8; }

.profile-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    animation: fadeIn 1s ease-out 0.5s both;
}

.profile-icon {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-weight: 700;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
    font-size: 0.95rem;
    justify-content: center;
}

.contact-item a { color: var(--accent); text-decoration: none; transition: color 0.3s; }
.contact-item a:hover { color: var(--white); }

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

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

/* Sections */
section { padding: 5rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.section-header p { color: var(--text); font-size: 1.1rem; margin-top: 1.5rem; }

/* About */
.about { background: var(--white); }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text { font-size: 1.1rem; line-height: 1.8; }
.about-text p { margin-bottom: 1.5rem; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }

.highlight-box {
    padding: 1.5rem;
    background: var(--light);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.highlight-box h3 { color: var(--secondary); margin-bottom: 0.5rem; font-size: 1.1rem; }
.highlight-box p { font-size: 0.95rem; color: var(--text); margin: 0; }

/* Skills */
.skills { background: linear-gradient(to bottom, var(--light), var(--white)); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

.skill-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}

.skill-category:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.skill-category h3 { color: var(--secondary); margin-bottom: 1.5rem; font-size: 1.3rem; }
.skill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.skill-tag {
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.skill-tag:hover { background: var(--primary); color: var(--white); transform: scale(1.05); }

/* Experience */
.experience { background: var(--white); }
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.timeline-item { margin-bottom: 3rem; position: relative; width: 50%; padding: 0 2rem; }
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }

.timeline-content {
    background: var(--light);
    padding: 2rem;
    border-radius: 16px;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    top: 20px;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px var(--primary);
}

.timeline-item:nth-child(odd) .timeline-dot { right: -10px; }
.timeline-item:nth-child(even) .timeline-dot { left: -10px; }

.timeline-date { color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
.timeline-title { color: var(--secondary); font-size: 1.3rem; margin-bottom: 0.5rem; }
.timeline-company { color: var(--accent); font-weight: 600; margin-bottom: 1rem; display: block; }
.timeline-content ul { list-style: none; padding: 0; }
.timeline-content li { margin-bottom: 0.5rem; position: relative; padding-left: 1.2rem; }
.timeline-content li::before { content: '▹'; position: absolute; left: 0; color: var(--primary); }

/* Projects */
.projects { background: linear-gradient(to bottom, var(--white), var(--light)); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }

.project-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.project-card:hover { transform: translateY(-10px); box-shadow: 0 20px 60px rgba(0,0,0,0.12); }

.project-image {
    height: 250px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image h3 { color: white; font-size: 2rem; font-weight: 700; text-align: center; z-index: 2; position: relative; }
.project-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
}

.project-content { padding: 2rem; }
.project-tags { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.project-tag { background: #f1f5f9; color: var(--primary); padding: 0.25rem 0.75rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; }
.project-card h3 { color: var(--secondary); font-size: 1.5rem; margin-bottom: 1rem; }
.project-card p { color: var(--text); line-height: 1.6; margin-bottom: 1.5rem; }

.project-highlights { list-style: none; padding: 0; }
.project-highlights li { padding: 0.5rem 0; padding-left: 1.5rem; position: relative; color: var(--text); font-size: 0.95rem; }
.project-highlights li::before { content: '✓'; position: absolute; left: 0; color: #10b981; font-weight: 700; }

/* Education */
.education { background: var(--white); }
.education-card {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--light), var(--white));
    border: 2px solid rgba(37, 99, 235, 0.1);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.education-degree { font-size: 1.5rem; color: var(--secondary); margin-bottom: 0.5rem; }
.education-school { color: var(--primary); font-weight: 600; font-size: 1.1rem; margin-bottom: 0.5rem; }

/* Contact */
.contact {
    background: linear-gradient(135deg, var(--secondary), #1e293b);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; position: relative; z-index: 1; }
.contact-info-box h3 { font-size: 2rem; margin-bottom: 1rem; }
.contact-info-box p { color: #94a3b8; margin-bottom: 2rem; font-size: 1.1rem; }
.contact-methods { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
    text-decoration: none;
    color: var(--white);
}

.contact-method:hover { background: rgba(255,255,255,0.1); transform: translateX(10px); border-color: var(--accent); }
.contact-icon { width: 50px; height: 50px; background: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.contact-details h4 { margin-bottom: 0.25rem; font-size: 1.1rem; }
.contact-details span { color: #94a3b8; font-size: 0.9rem; }

.contact-form { background: rgba(255,255,255,0.05); padding: 2rem; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: #cbd5e1; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: var(--white);
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #64748b; }
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* Footer */
footer { background: #0f172a; color: #64748b; text-align: center; padding: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }

/* Elementor Specific Overrides */
.elementor-page .hero { margin-top: 0; }
.elementor-page nav { position: relative; }
.elementor-editor-active .hero { margin-top: 0; }
.single-projects .hero { margin-top: 80px; }

/* Responsive */
@media (max-width: 768px) {
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); flex-direction: column; padding: 1rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
    .nav-menu.active { display: flex; }
    .mobile-menu-toggle { display: block; }
    .hero-container, .about-content, .contact-content { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-stats { grid-template-columns: 1fr; }
    .timeline::before { left: 20px; }
    .timeline-item { width: 100%; left: 0 !important; padding-left: 60px; text-align: left !important; }
    .timeline-dot { left: 10px !important; right: auto !important; }
    .projects-grid { grid-template-columns: 1fr; }
    .about-highlights { grid-template-columns: 1fr; }
    .contact-item { justify-content: center; }
}

/* Admin Bar Fix */
.admin-bar .hero { margin-top: 112px; }
.admin-bar nav { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar nav { top: 46px; }
    .admin-bar .hero { margin-top: 126px; }
}
/* ===============================
   HEADER SCROLL EFFECT
=================================*/
nav.scrolled {
    padding: 0.6rem 0;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 6px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

/* ===============================
   ACTIVE MENU LINK
=================================*/
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a.active::after {
    width: 100%;
}


/* ===============================
   SMOOTH MOBILE MENU ANIMATION
=================================*/
@media (max-width:768px){

    .nav-menu{
        transform: translateY(-15px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-menu.active{
        transform: translateY(0);
        opacity: 1;
    }

    .mobile-menu-toggle{
        padding: 8px 12px;
        border-radius: 6px;
        background: var(--light);
    }
}


/* ===============================
   FIX SCROLL OFFSET (IMPORTANT)
   Menu click par section cut nahi hoga
=================================*/
section {
    scroll-margin-top: 100px;
}


/* ===============================
   PROJECT CARD HOVER IMPROVEMENT
=================================*/
.project-card:hover .project-image h3 {
    transform: scale(1.05);
    transition: 0.3s ease;
}


/* ===============================
   BUTTON IMPROVEMENT
=================================*/
.btn {
    letter-spacing: 0.3px;
}

.btn:hover {
    transform: translateY(-3px);
}


/* ===============================
   BETTER MOBILE SPACING
=================================*/
@media (max-width:768px){

    section {
        padding: 4rem 1.5rem;
    }

    .hero {
        padding: 5rem 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

}