/* Component-Specific Styles */

/* Project Modal */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 20px 0;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: 2% auto;
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--neon-blue);
    max-height: none;
}

.modal-title {
    color: var(--neon-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--neon-blue);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--neon-purple);
}

.modal-video-container {
    width: 100%;
    margin: 1rem 0;
}

.modal-video {
    width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
    object-fit: contain;
}

.modal-body {
    max-height: none;
    overflow-y: visible;
}

/* Timer Component */
.timer-container {
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    border: 1px solid var(--neon-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timer {
    font-family: monospace;
    font-size: 2rem;
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0,243,255,0.5);
}

.timer-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timer-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--neon-purple);
    color: var(--neon-purple);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timer-btn:hover {
    background: var(--neon-purple);
    color: var(--dark-bg);
}

.expected-time {
    color: var(--neon-pink);
    font-size: 0.9rem;
}

.modal-details {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.modal-details h3 {
    color: var(--neon-blue);
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.modal-details h3:first-child {
    margin-top: 0;
}

.modal-details p {
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.modal-details ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.modal-details ul li {
    color: #fff;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
}

.modal-details ul li:before {
    content: '•';
    color: var(--neon-purple);
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.modal-details ul:last-child {
    margin-bottom: 0;
}

/* Experience Timeline */
.experience-section {
    min-height: 100vh;
    padding: 6rem 2rem;
    position: relative;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,243,255,0.05));
}

.experience-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--neon-blue), var(--neon-purple));
    opacity: 0.5;
}

.timeline-items {
    position: relative;
}

.timeline-item {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-content {
    width: 45%;
    padding: 2rem;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 20px rgba(0,243,255,0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.02);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--neon-blue);
}

.timeline-date {
    font-size: 1.2rem;
    color: var(--neon-blue);
    margin-bottom: 1rem;
    font-weight: bold;
}

.timeline-role {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--neon-purple);
    margin-bottom: 1rem;
}

.timeline-description {
    font-size: 1rem;
    color: #fff;
    line-height: 1.6;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.timeline-skill {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    color: var(--neon-blue);
}

.timeline-skill:hover {
    animation: skillPop 0.3s ease;
    background: var(--neon-blue);
    color: var(--dark-bg);
}

.timeline-connector {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    width: calc(5% + 10px);
    height: 2px;
    background: var(--neon-blue);
}

/* Skills Section */
.skills-section {
    min-height: 100vh;
    padding: 6rem 2rem;
    position: relative;
    background: linear-gradient(to bottom, rgba(0,243,255,0.05), rgba(157,0,255,0.05));
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
}

.skills-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skill-category {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-10px);
}

.skill-category-title {
    font-size: 1.5rem;
    color: var(--neon-blue);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.skill-category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-name {
    color: #fff;
    font-size: 1rem;
}

.skill-percentage {
    color: var(--neon-purple);
    font-size: 0.9rem;
}

.skill-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    border-radius: 3px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.2, 1);
    box-shadow: 0 0 10px rgba(157,0,255,0.5);
}

.skill-icon {
    width: 40px;
    height: 40px;
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 15px rgba(0,243,255,0.3);
    transform: translateZ(20px);
    transition: transform 0.3s ease;
}

.skill-icon i {
    color: var(--neon-blue);
    font-size: 1.2rem;
}

.skill-category:hover .skill-icon {
    transform: translateZ(30px) rotate(360deg);
}

/* Contact Section */
.contact-section {
    min-height: 100vh;
    padding: 6rem 1rem;
    position: relative;
    background: linear-gradient(to bottom, rgba(157,0,255,0.05), rgba(0,0,0,0));
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-subtitle {
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 4rem;
    opacity: 0.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-form {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0,243,255,0.3);
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    transition: 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 15px rgba(0,243,255,0.3);
}

.contact-icon i {
    color: var(--neon-blue);
    font-size: 1.2rem;
}

.contact-info-content h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-info-content p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}