/* Section Styling - Hero, About, Education, Skills, etc. */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: transparent;
    margin-top: 70px;
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .hero {
    background: transparent;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

.stars::before {
    top: 20%;
    left: 10%;
}

.stars::after {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

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

.hero-text {
    animation: fadeInLeft 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
    animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.8;
    animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s backwards;
}

.hero-visual {
    animation: fadeInRight 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
    animation: float 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    position: relative;
    overflow: hidden;
}

.floating-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2));
}

.card-content {
    font-size: 100px;
    z-index: 10;
    animation: pulse 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 0.875rem;
    color: var(--text-muted);
    animation: slideInUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 13px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 8px;
    background: var(--primary);
    border-radius: 1px;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s ease-in-out infinite;
}

/* About Section */
.about {
    padding: 4rem 0;
    background: transparent;
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .about {
    background: transparent;
}

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

.about-text {
    animation: fadeInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    transition: all 0.3s ease;
}

.about-text p:hover {
    color: var(--primary);
    transform: translateX(5px);
}

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

.about-image {
    animation: fadeInRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 120px;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
    position: relative;
    animation: float 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2));
    border-radius: 30px;
}

/* Education Section */
.education {
    padding: 4rem 0;
    background: transparent;
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.education-timeline {
    position: relative;
    padding: 3rem 0;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.timeline-item {
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 1;
}

.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 3;
}

.timeline-marker {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border: 4px solid var(--dark-bg);
    border-radius: 50%;
    grid-column: 2;
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.2);
    animation: pulse 2s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.education-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.education-card:hover::before {
    left: 100%;
}

.education-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
}

.education-header h3 {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 700;
}

.education-year {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    animation: slideInRight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.education-institution {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.education-details {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Skills Section */
.skills {
    padding: 4rem 0;
    background: transparent;
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .skills {
    background: transparent;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.category-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Achievements Section */
.achievements {
    padding: 4rem 0;
    background: transparent;
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

/* Experience Section */
.experience {
    padding: 4rem 0;
    background: transparent;
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-timeline {
    position: relative;
    padding: 3rem 0;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--secondary), var(--primary));
}

.exp-item {
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: flex-start;
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.exp-item:nth-child(even) .exp-content {
    grid-column: 1;
}

.exp-item:nth-child(odd) .exp-content {
    grid-column: 3;
}

.exp-marker {
    width: 24px;
    height: 24px;
    background: var(--secondary);
    border: 4px solid var(--dark-bg);
    border-radius: 50%;
    grid-column: 2;
    box-shadow: 0 0 0 6px rgba(236, 72, 153, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.exp-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.exp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.1), transparent);
    transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.exp-card:hover::before {
    left: 100%;
}

.exp-card:hover {
    border-color: var(--secondary);
    transform: translateY(-8px);
    box-shadow: 0 10px 40px rgba(236, 72, 153, 0.3);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
}

.exp-header h3 {
    font-size: 1.25rem;
    color: var(--secondary);
}

.exp-period {
    background: linear-gradient(135deg, var(--secondary), #ff69b4);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.exp-company {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.exp-details {
    list-style: none;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.exp-details li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.exp-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary);
}

/* Projects Section */
.projects {
    padding: 4rem 0;
    background: transparent;
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.projects-intro {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.projects-intro p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.5);
    z-index: 10;
}

.project-card.placeholder {
    opacity: 0.6;
    border-style: dashed;
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.project-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:hover .project-screenshot {
    transform: scale(1.1);
}

.image-placeholder-project {
    font-size: 60px;
    color: var(--primary);
    opacity: 0.5;
}

.project-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-tags span {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid var(--primary);
}

.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-link {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: transparent;
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

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

.contact-item {
    display: flex;
    gap: 1.5rem;
    animation: fadeInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-muted);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeInRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-group {
    display: flex;
    flex-direction: column;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border);
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section ul {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-section a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px) scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {

    /* Hero Section Mobile */
    .hero {
        min-height: auto;
        padding: 2rem 0;
        margin-top: 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

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

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        justify-content: center;
        gap: 1rem;
    }

    .floating-card {
        width: 200px;
        height: 200px;
    }

    .card-content {
        font-size: 70px;
    }

    /* About Section Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text {
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .image-placeholder {
        width: 250px;
        height: 250px;
        font-size: 80px;
    }

    /* Education & Experience Timeline Mobile */
    .education-timeline::before,
    .experience-timeline::before {
        left: 20px;
    }

    .timeline-item,
    .exp-item {
        grid-template-columns: auto 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .timeline-marker,
    .exp-marker {
        grid-column: 1;
    }

    .timeline-content,
    .exp-content {
        grid-column: 2;
        text-align: left !important;
    }

    .education-card,
    .exp-card {
        padding: 1.5rem;
    }

    .education-header,
    .exp-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .education-year,
    .exp-period {
        align-self: flex-start;
    }

    /* Skills Section Mobile */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    /* Achievements Section Mobile */
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Projects Section Mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-card {
        margin: 0 1rem;
    }

    /* Contact Section Mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        gap: 1.5rem;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

    /* General Mobile Fixes */
    .container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Scroll Indicator Mobile */
    .scroll-indicator {
        display: none;
    }

    /* Button Mobile */
    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* Extra Small Mobile (max-width: 480px) */
@media (max-width: 480px) {

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.875rem;
    }

    .floating-card {
        width: 180px;
        height: 180px;
    }

    .card-content {
        font-size: 60px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .education-card,
    .exp-card,
    .skill-category {
        padding: 1rem;
    }

    .project-card {
        margin: 0 0.5rem;
    }

    .project-content {
        padding: 1.5rem;
    }

    .stat h3 {
        font-size: 2rem;
    }

    .stat p {
        font-size: 0.875rem;
    }
}