/* Hero Section */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(139, 92, 246, 0.1));
}

.dark .hero {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(139, 92, 246, 0.05));
}

/* Ensure full-bleed hero background on all devices */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(139, 92, 246, 0.1));
    z-index: 0;
    pointer-events: none;
}
.dark .hero::before {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(139, 92, 246, 0.05));
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text .subtitle {
    font-size: 1.5rem;
    color: var(--gray);
    margin-bottom: 2rem;
    font-weight: 400;
}

.typewriter-text {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

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

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 5px solid var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    object-fit: cover;
}

.profile-img:hover {
    transform: scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

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

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 2rem;
}

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

.about-stat {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.dark .about-stat {
    background: rgba(30, 41, 59, 0.9);
}

.about-stat:hover {
    transform: translateY(-10px);
    background: var(--gradient-primary);
    color: white;
}

.about-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.about-stat:hover .about-stat-number {
    color: white;
}

.about-stat-text {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 500;
    transition: all 0.3s ease;
}

.about-stat:hover .about-stat-text {
    color: white;
}

/* Education Section */
.education-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.education-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--gradient-primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.education-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.education-item.left {
    left: 0;
}

.education-item.right {
    left: 50%;
}

.education-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: var(--accent);
    border: 4px solid var(--primary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.education-item.left::after {
    right: -10px;
}

.education-item.right::after {
    left: -10px;
}

.education-item:hover::after {
    background: var(--primary);
    transform: scale(1.3);
}

.education-content {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    position: relative;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.dark .education-content {
    background: rgba(30, 41, 59, 0.95);
}

.education-item:hover .education-content {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.education-date {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.education-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.dark .education-title {
    color: var(--light);
}

.education-school {
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 1rem;
}

.education-description {
    color: var(--gray);
    line-height: 1.6;
}

/* Experience Section */
.experience-grid {
    display: grid;
    gap: 2rem;
}

.experience-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.dark .experience-card {
    background: rgba(30, 41, 59, 0.95);
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.experience-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.experience-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.dark .experience-title {
    color: var(--light);
}

.experience-company {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.experience-location {
    color: var(--gray);
    font-size: 0.9rem;
}

.experience-date {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
}

.experience-description {
    color: var(--gray);
    line-height: 1.6;
}

.experience-achievements {
    list-style: none;
    margin-top: 1rem;
}

.experience-achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.experience-achievements li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.8rem;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.dark .skill-category {
    background: rgba(30, 41, 59, 0.95);
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.skill-category:hover::before {
    width: 100%;
    opacity: 0.1;
}

.skill-category-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.skill-category-title i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.skill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

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

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    border: 2px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.dark .filter-btn {
    background: rgba(30, 41, 59, 0.9);
    color: var(--light);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

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

.project-card {
    position: relative;
    height: 565px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.dark .project-card {
    background: rgba(30, 41, 59, 0.95);
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.project-content {
    padding: 1.5rem;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.dark .project-title {
    color: var(--light);
}

.project-category {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.project-description {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

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

.project-tech-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 12px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.dark .project-tech-tag {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

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

.project-link {
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.project-link.secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.project-link.secondary:hover {
    background: var(--primary);
    color: white;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.dark .contact-info {
    background: rgba(30, 41, 59, 0.95);
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background: rgba(79, 70, 229, 0.1);
    transform: translateX(10px);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.contact-info-text h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.dark .contact-info-text h4 {
    color: var(--light);
}

.contact-info-text p {
    color: var(--gray);
    font-size: 0.9rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.dark .contact-form {
    background: rgba(30, 41, 59, 0.95);
}

/* Certificate Carousel Section */
.certificate-carousel {
    max-width: 650px;
    margin: 0 auto;
}

.carousel-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.carousel-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.certificate-display {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}

.dark .certificate-display {
    background: rgba(30, 41, 59, 0.95);
}

.certificate-image-container {
    text-align: center;
    margin-bottom: 2rem;
}

.certificate-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.certificate-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.certificate-info {
    text-align: center;
}

.certificate-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.dark .certificate-title {
    color: var(--light);
}

.certificate-description {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.certificate-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(79, 70, 229, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--light);
    padding: 3rem 0 1rem;
    text-align: center;
}

.dark .footer {
    background: var(--light);
    color: var(--dark);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    transform: translateY(-5px);
    background: var(--accent);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.footer-text {
    color: var(--gray);
    font-size: 0.9rem;
}
