/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #312E81 0%, #1E1B4B 100%);
    color: white;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.profile-section {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.profile-info {
    flex: 1;
    text-align: center;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.summary {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.contact-item i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Main Content Styles */
.main-content {
    padding: 3rem 2rem;
}

.section {
    margin-bottom: 3rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #4F46E5;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #E5E7EB;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4F46E5, #7C3AED);
    border-radius: 2px;
}

.section-title i {
    font-size: 1.3rem;
}

/* Timeline Styles */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #4F46E5, #7C3AED);
    border-radius: 1px;
}

.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-date {
    width: 120px;
    flex-shrink: 0;
    font-weight: 600;
    color: #4F46E5;
    font-size: 0.9rem;
    padding-top: 0.5rem;
}

.timeline-content {
    flex: 1;
    margin-left: 2rem;
    padding: 1.5rem;
    background: #F9FAFB;
    border-radius: 12px;
    border-left: 4px solid #4F46E5;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    background: #4F46E5;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #E5E7EB;
}

/* Remove ball for education section */
.section:first-of-type .timeline-content::before {
    display: none;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: white;
}

.timeline-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #4F46E5;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #6B7280;
}

.timeline-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #4F46E5;
    font-weight: bold;
}

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

.skill-category h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 1rem;
}

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

.skill-tag {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

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

.project-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4F46E5, #7C3AED);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #4F46E5;
}

.project-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 1rem;
}

.project-card p {
    color: #6B7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.tech-tag {
    background: #F3F4F6;
    color: #4F46E5;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #E5E7EB;
}

.project-link {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
}

.project-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4F46E5;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link a:hover {
    color: #7C3AED;
    transform: translateX(2px);
}

.project-link i {
    font-size: 0.8rem;
}

/* Certifications Styles */
.certifications-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.certification-item {
    background: #F9FAFB;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #4F46E5;
    transition: all 0.3s ease;
}

.certification-item:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.certification-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.certification-item p {
    color: #6B7280;
    font-size: 0.9rem;
}

/* Footer Styles */
.footer {
    background: #F9FAFB;
    text-align: center;
    padding: 2rem;
    color: #6B7280;
    border-top: 1px solid #E5E7EB;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .header {
        padding: 2rem 1rem;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .title {
        font-size: 1.2rem;
    }
    
    .summary {
        font-size: 1rem;
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .contact-info {
        gap: 0.75rem;
    }
    
    .contact-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .contact-item span {
        word-break: break-word;
    }
    
    .main-content {
        padding: 2rem 1rem;
    }
    
    .section {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .timeline::before {
        left: 80px;
    }
    
    .timeline-date {
        width: 80px;
        font-size: 0.8rem;
    }
    
    .timeline-content {
        margin-left: 1rem;
        padding: 1.25rem;
    }
    
    .skills-grid,
    .projects-grid,
    .certifications-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-tags {
        gap: 0.4rem;
    }
    
    .skill-tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .project-card {
        padding: 1.25rem;
    }
    
    .project-tech {
        gap: 0.4rem;
    }
    
    .tech-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    .certification-item {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 0.75rem;
    }
    
    .name {
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
    }
    
    .title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .summary {
        font-size: 0.95rem;
        line-height: 1.5;
        padding: 0 0.25rem;
    }
    
    .contact-info {
        gap: 0.5rem;
    }
    
    .contact-item {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .contact-item i {
        font-size: 1rem;
        width: 16px;
    }
    
    .main-content {
        padding: 1.5rem 0.75rem;
    }
    
    .section {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        gap: 0.5rem;
    }
    
    .section-title i {
        font-size: 1.1rem;
    }
    
    .timeline::before {
        left: 60px;
    }
    
    .timeline-date {
        width: 60px;
        font-size: 0.7rem;
        padding-top: 0.4rem;
    }
    
    .timeline-content {
        margin-left: 0.5rem;
        padding: 1rem;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
    
    .timeline-content h4 {
        font-size: 0.9rem;
    }
    
    .skills-grid,
    .projects-grid,
    .certifications-list {
        gap: 1rem;
    }
    
    .skill-category h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }
    
    .project-card {
        padding: 1rem;
    }
    
    .project-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .project-card p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .tech-tag {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
    }
    
    .certification-item {
        padding: 1rem;
    }
    
    .certification-item h3 {
        font-size: 1rem;
    }
    
    .certification-item p {
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .header {
        padding: 1.25rem 0.5rem;
    }
    
    .name {
        font-size: 1.6rem;
    }
    
    .title {
        font-size: 1rem;
    }
    
    .summary {
        font-size: 0.9rem;
    }
    
    .contact-item {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .main-content {
        padding: 1.25rem 0.5rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .timeline-date {
        width: 50px;
        font-size: 0.65rem;
    }
    
    .timeline::before {
        left: 50px;
    }
    
    .timeline-content {
        margin-left: 0.4rem;
        padding: 0.8rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .container {
        box-shadow: none;
        margin: 0;
        border-radius: 0;
    }
    
    .header {
        background: #4F46E5 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .section-title {
        color: #4F46E5 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .skill-tag {
        background: #4F46E5 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
} 