/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 8rem;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-special);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-family: var(--font-secondary);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

/* About Section */
.about {
    margin: 6rem 0;
    padding: 4rem 2rem;
}

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

.about-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.timeline {
    margin-top: 2rem;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.timeline-icon {
    font-size: 1.5rem;
    background: var(--accent-gradient);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    font-family: var(--font-special);
}

.profile-frame {
    width: 100%;
    max-width: 300px;
    height: auto;
    background: var(--accent-gradient);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    margin: 0 auto;
}

/* Tech Stack Section */
.tech-stack {
    text-align: center;
    padding: 6rem 2rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tech-item {
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.tech-icon {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

.tech-name {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
}

.tech-item::before {
    content: attr(data-tech);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(155, 93, 229, 0.9);
    color: white;
    border-radius: var(--border-radius);
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: bold;
    font-size: 1rem;
}

.tech-item:hover::before {
    opacity: 1;
}

/* Projects Section */
.projects {
    padding: 6rem 2rem;
    text-align: center;
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-gradient);
    border-color: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.project-card {
    overflow: hidden;
    transition: transform 0.3s;
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.project-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #9b5de5, #00f5d4);
    position: relative;
    overflow: hidden;
}

.project-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.project-info {
    padding: 1rem;
    text-align: left;
    font-size: 1.2rem;
}

.project-content h3 {
    margin-bottom: 0.5rem;
    font-family: var(--font-special);
    font-size: 1.3rem;
}

.project-description {
    font-size: 0.9rem;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.tech-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
}

.project-links {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.project-card:hover .project-links {
    opacity: 1;
}

.project-links .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-links .btn i {
    font-size: 1.2rem;
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

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

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Journey Section */
.journey {
    padding: 6rem 2rem;
}

.journey-timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.journey-line {
    position: absolute;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
}

.journey-item {
    margin-bottom: 3rem;
    position: relative;
    width: 50%;
}

.journey-item:nth-child(odd) {
    left: 0;
    padding-right: 2rem;
    text-align: right;
}

.journey-item:nth-child(even) {
    left: 50%;
    padding-left: 2rem;
    text-align: left;
}

.journey-dot {
    position: absolute;
    top: 10px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.journey-item:nth-child(odd) .journey-dot {
    right: -7px;
}

.journey-item:nth-child(even) .journey-dot {
    left: -7px;
}

.journey-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
}

.journey-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.journey-text h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.journey-date {
    font-size: 0.9rem;
    color: var(--color-light-dim);
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--color-light-dim);
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.social-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-link:hover:before {
    opacity: 1;
}

.social-link:hover {
    color: white;
    transform: translateY(-5px);
}

/* Responsive adjustments for Sections */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .profile-frame {
        margin-bottom: 3rem;
    }

    .journey-item {
        width: 100%;
        left: 0;
        padding: 0 1.5rem;
        text-align: left;
    }

    .journey-item:nth-child(odd) {
        padding-right: 1.5rem;
    }

    .journey-item:nth-child(even) {
        padding-left: 1.5rem;
    }

    .journey-line {
        left: 1.5rem;
    }

    .journey-item:nth-child(odd) .journey-dot,
    .journey-item:nth-child(even) .journey-dot {
        left: 1rem;
        right: auto;
        transform: translateX(-50%);
    }

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

     .contact-info,
     .contact-form-container {
        padding: 0 1rem;
     }

}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }

     .projects-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .journey-content {
        padding: 1rem;
    }

    .journey-icon {
        font-size: 1.5rem;
    }

     .journey-text h3 {
        font-size: 1.1rem;
     }

     .journey-date {
        font-size: 0.8rem;
     }

     .social-links {
        justify-content: center;
     }

      .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
     }

}

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

     .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }

     .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
     }

      .journey-item {
        padding: 0 1rem;
      }

      .journey-line {
        left: 1rem;
      }

       .journey-item:nth-child(odd) .journey-dot,
       .journey-item:nth-child(even) .journey-dot {
           left: 0.5rem;
       }

}

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
}