/* Import base styles from home.css */
@import url('home.css');

/* About Page Specific Styles */
.hero {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.05) 0%, 
        rgba(255, 255, 255, 1) 50%, 
        rgba(59, 130, 246, 0.05) 100%);
    padding: 6rem 0 4rem;
    text-align: center;
}

.hero-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: float 4s ease-in-out infinite;
}

.hero-icon i {
    width: 2rem;
    height: 2rem;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-10px) rotate(5deg) scale(1.05);
    }
    50% {
        transform: translateY(-20px) rotate(0deg) scale(1.1);
    }
    75% {
        transform: translateY(-10px) rotate(-5deg) scale(1.05);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.7;
}

/* Education Section */
.education {
    padding: 4rem 0;
}

.education-card {
    max-width: 48rem;
    margin: 0 auto;
    background-color: var(--card);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.education-card:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.education-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.25rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.education-degree {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.education-institution {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.education-period {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.education-period::before {
    content: '📅';
    font-size: 0.75rem;
}

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

/* Certifications Section */
.certifications {
    padding: 5rem 0;
    background-color: rgba(100, 116, 139, 0.05);
}

.certifications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .certifications-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cert-card {
    background-color: var(--card);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.cert-card:hover::before {
    transform: translateX(100%);
}

.cert-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.cert-card[data-color="blue"] .cert-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.cert-card[data-color="green"] .cert-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.cert-card[data-color="purple"] .cert-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.cert-card[data-color="orange"] .cert-icon {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.cert-card[data-color="cyan"] .cert-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.cert-card[data-color="pink"] .cert-icon {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.cert-card[data-color="red"] .cert-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.cert-card[data-color="yellow"] .cert-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.cert-card[data-color="indigo"] .cert-icon {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

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

.cert-icon {
    padding: 0.75rem;
    border-radius: 0.75rem;
    color: white;
    animation: bounce 2s ease-in-out infinite;
}

.cert-icon i {
    width: 1.25rem;
    height: 1.25rem;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(10deg);
    }
    75% {
        transform: scale(1.1) rotate(-10deg);
    }
}

.cert-category {
    padding: 0.25rem 0.5rem;
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.cert-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.cert-card:hover .cert-name {
    color: var(--primary);
}

.cert-issuer {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.cert-year {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cert-year::before {
    content: '📅';
    font-size: 0.75rem;
}

.cert-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

/* Expertise Section */
.expertise {
    padding: 5rem 0;
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .expertise-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.expertise-card {
    background-color: var(--card);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 0.75rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.expertise-icon {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
    margin: 0 auto 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(90deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    75% {
        transform: scale(1.2) rotate(270deg);
    }
}

.expertise-title {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.expertise-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

/* CTA Section */
.cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(255, 255, 255, 1) 50%, 
        rgba(59, 130, 246, 0.1) 100%);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .cta-title {
        font-size: 3rem;
    }
}

.cta-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 32rem;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-scale-up {
    animation: scaleUp 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .education-card {
        flex-direction: column;
        text-align: center;
    }
    
    .cert-header {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}