/* Modern Portfolio Integration Styles */

/* Wrapper for modern sections - maintain original background */
.modern-portfolio-sections {
    width: 100%;
    background: transparent; /* Use the same background as main portfolio */
    padding: 0;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

/* Override section styles for modern sections */
.modern-portfolio-sections .section {
    min-height: 100vh;
    padding: 80px 20px;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-portfolio-sections .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Modern Hero Section Adjustments */
.modern-hero {
    background: transparent !important;
}

.modern-hero .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: rgba(0, 20, 40, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px;
    border: 1px solid rgba(0, 153, 255, 0.3);
}

.modern-hero .hero-title {
    font-size: 3rem;
    background: linear-gradient(45deg, #0099ff, #00ffcc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-weight: 700;
}

.modern-hero .accent {
    background: linear-gradient(45deg, #00ffcc, #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-hero .hero-subtitle {
    font-size: 1.5rem;
    color: #00ffcc;
    margin-bottom: 20px;
}

.modern-hero .hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 30px;
}

.modern-hero .hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.modern-hero .tag {
    padding: 8px 16px;
    background: rgba(0, 153, 255, 0.2);
    color: #00ffcc;
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.modern-hero .hero-cta {
    display: flex;
    gap: 20px;
}

.modern-hero .btn {
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modern-hero .btn-primary {
    background: linear-gradient(45deg, #0099ff, #00ffcc);
    color: #000;
    border: none;
}

.modern-hero .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 153, 255, 0.5);
}

.modern-hero .btn-secondary {
    background: transparent;
    color: #00ffcc;
    border: 2px solid #00ffcc;
}

.modern-hero .btn-secondary:hover {
    background: rgba(0, 255, 204, 0.1);
    transform: translateY(-2px);
}

.modern-hero .profile-img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 153, 255, 0.3);
    border: 2px solid rgba(0, 255, 204, 0.3);
}

.modern-hero .hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    justify-content: center;
}

.modern-hero .stat {
    text-align: center;
}

.modern-hero .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #0099ff, #00ffcc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-hero .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Modern About Section */
.modern-about {
    background: transparent !important;
}

.modern-about .container {
    background: rgba(0, 20, 40, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px;
    border: 1px solid rgba(0, 153, 255, 0.3);
}

.modern-about .section-title {
    background: linear-gradient(45deg, #0099ff, #00ffcc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
}

.modern-about .about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.modern-about p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.modern-about strong {
    color: #00ffcc;
}

.modern-about .skills-grid {
    display: grid;
    gap: 30px;
}

.modern-about .skill-category h3 {
    color: #00ffcc;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.modern-about .skill-category ul {
    list-style: none;
    padding: 0;
}

.modern-about .skill-category li {
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 255, 204, 0.2);
}

/* Modern Experience Section */
.modern-experience {
    background: transparent !important;
}

.modern-experience .container {
    background: rgba(0, 20, 40, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px;
    border: 1px solid rgba(0, 153, 255, 0.3);
}

.modern-experience .section-title {
    background: linear-gradient(45deg, #0099ff, #00ffcc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
}

.modern-experience .timeline {
    position: relative;
    padding-left: 40px;
}

.modern-experience .timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #0099ff, #00ffcc);
}

.modern-experience .timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.modern-experience .timeline-item::before {
    content: '';
    position: absolute;
    left: -46px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00ffcc;
    border: 3px solid rgba(0, 153, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
}

.modern-experience .timeline-date {
    color: #00ffcc;
    font-weight: 600;
    margin-bottom: 10px;
}

.modern-experience .timeline-content h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.modern-experience .timeline-content .company {
    color: #0099ff;
    font-style: italic;
    margin-bottom: 10px;
}

.modern-experience .timeline-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Modern Projects Section */
.modern-projects {
    background: transparent !important;
}

.modern-projects .container {
    background: rgba(0, 20, 40, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px;
    border: 1px solid rgba(0, 153, 255, 0.3);
}

.modern-projects .section-title {
    background: linear-gradient(45deg, #0099ff, #00ffcc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
}

.modern-projects .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.modern-projects .project-card {
    background: rgba(0, 40, 80, 0.5);
    border: 1px solid rgba(0, 153, 255, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.modern-projects .project-card:hover {
    transform: translateY(-10px);
    border-color: #00ffcc;
    box-shadow: 0 20px 40px rgba(0, 255, 204, 0.3);
}

.modern-projects .project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.modern-projects .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modern-projects .project-card:hover .project-image img {
    transform: scale(1.1);
}

.modern-projects .project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 20, 40, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-projects .project-card:hover .project-overlay {
    opacity: 1;
}

.modern-projects .btn-play,
.modern-projects .btn-view {
    padding: 10px 20px;
    background: linear-gradient(45deg, #0099ff, #00ffcc);
    color: #000;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.modern-projects .btn-play:hover,
.modern-projects .btn-view:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 255, 204, 0.5);
}

.modern-projects .btn-play svg {
    width: 20px;
    height: 20px;
}

.modern-projects .project-content {
    padding: 25px;
}

.modern-projects .project-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.modern-projects .badge {
    padding: 5px 12px;
    background: rgba(0, 153, 255, 0.2);
    color: #00ffcc;
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.modern-projects .badge-winner {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.5);
}

.modern-projects .project-title {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.modern-projects .project-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 15px;
}

.modern-projects .project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modern-projects .project-tech span {
    padding: 5px 10px;
    background: rgba(0, 153, 255, 0.1);
    color: #0099ff;
    border: 1px solid rgba(0, 153, 255, 0.3);
    border-radius: 12px;
    font-size: 0.85rem;
}

.modern-projects .project-more {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-projects .project-content-centered {
    text-align: center;
    padding: 40px;
}

.modern-projects .project-content-centered h3 {
    color: #00ffcc;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.modern-projects .project-content-centered p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.modern-projects .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: #00ffcc;
    border: 2px solid #00ffcc;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modern-projects .btn-secondary:hover {
    background: rgba(0, 255, 204, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 204, 0.3);
}

/* Fix overlapping and positioning issues */
.modern-portfolio-sections .section + .section {
    margin-top: 0;
}

/* Ensure proper stacking */
.modern-portfolio-sections {
    position: relative;
    z-index: 5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-hero .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 20px;
    }

    .modern-about .about-grid {
        grid-template-columns: 1fr;
    }

    .modern-projects .projects-grid {
        grid-template-columns: 1fr;
    }

    .modern-about .container,
    .modern-experience .container,
    .modern-projects .container {
        padding: 40px 20px;
    }
}