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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    perspective: 1000px;
    overflow-x: hidden;
    transform-style: preserve-3d;
}

.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;
    transform-style: preserve-3d;
    animation: containerFloat 6s ease-in-out infinite;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.profile-info {
    flex: 1;
}

.name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    animation: nameGlow 3s ease-in-out infinite alternate;
}

.name:hover {
    transform: translateZ(20px) scale(1.05);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    animation: titleFloat 4s ease-in-out infinite;
}

.title:hover {
    transform: translateZ(15px) scale(1.02);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

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

.contact-item i {
    width: 20px;
    text-align: center;
}

.profile-avatar {
    margin-left: 2rem;
}

.avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transform-style: preserve-3d;
    animation: avatarFloat 6s ease-in-out infinite;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.avatar-image:hover {
    transform: scale(1.1) rotateY(10deg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

.avatar-image:hover .profile-photo {
    transform: scale(1.05);
}

/* Section Styles */
.section {
    padding: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

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

/* Summary Styles */
.summary {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

/* Experience Styles */
.experience-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9ff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.experience-header {
    margin-bottom: 1rem;
}

.job-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.company-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.95rem;
    color: #666;
}

.company-name {
    font-weight: 500;
    color: #667eea;
}

.company-description {
    font-style: italic;
    color: #888;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.achievements {
    list-style: none;
    padding-left: 0;
}

.achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Counter animation styles */
.achievements li strong {
    transition: all 0.3s ease;
    display: inline-block;
}

.achievements li strong.counting {
    animation: numberPulse 0.5s ease-in-out;
}

@keyframes numberPulse {
    0% {
        transform: scale(1);
        color: #333;
    }
    50% {
        transform: scale(1.1);
        color: #667eea;
    }
    100% {
        transform: scale(1);
        color: #667eea;
    }
}

/* Education Styles */
.education-item {
    padding: 1.5rem;
    background: #f8f9ff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.education-header {
    margin-bottom: 1rem;
}

.degree {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.school-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
}

.school-name {
    font-weight: 500;
    color: #667eea;
}

.education-details {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.gpa {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.coursework {
    color: #666;
    font-size: 0.95rem;
}

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

.skill-category {
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.skill-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

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

.skill-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.project-item {
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-8px) rotateX(8deg) rotateY(-8deg);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.project-description {
    color: #666;
    line-height: 1.6;
}

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

.award-item {
    background: linear-gradient(135deg, #f8f9ff, #e8f2ff);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
}

.award-item:hover {
    transform: translateY(-5px) rotateZ(5deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.award-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.75rem;
}

.award-description {
    color: #666;
    line-height: 1.6;
}

/* Activities Styles */
.activities-list {
    list-style: none;
    padding-left: 0;
}

.activities-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    background: #f8f9ff;
    padding: 1rem 1rem 1rem 2.5rem;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.activities-list li::before {
    content: '🎯';
    position: absolute;
    left: 0.75rem;
    top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 0;
        border-radius: 0;
    }
    
    .header {
        padding: 2rem 1rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .title {
        font-size: 1.25rem;
    }
    
    .profile-avatar {
        margin-left: 0;
    }
    
    .avatar-image {
        width: 100px;
        height: 100px;
    }
    
    .section {
        padding: 1.5rem 1rem;
    }
    
    .skills-grid,
    .projects-grid,
    .awards-grid {
        grid-template-columns: 1fr;
    }
    
    .company-info,
    .school-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-info {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2rem;
    }
    
    .title {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .job-title,
    .degree,
    .project-title,
    .award-title {
        font-size: 1.1rem;
    }
}

/* 3D Animations */
@keyframes containerFloat {
    0%, 100% { 
        transform: translateY(0px) rotateX(0deg); 
    }
    50% { 
        transform: translateY(-5px) rotateX(0.5deg); 
    }
}

@keyframes avatarFloat {
    0%, 100% { 
        transform: translateY(0px) rotateX(0deg); 
    }
    50% { 
        transform: translateY(-8px) rotateX(2deg); 
    }
}



@keyframes sectionSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50px) rotateY(-5deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

@keyframes cardFlip {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(180deg);
    }
}

@keyframes floatingIcons {
    0%, 100% {
        transform: translateY(0px) rotateZ(0deg);
    }
    25% {
        transform: translateY(-5px) rotateZ(5deg);
    }
    50% {
        transform: translateY(-10px) rotateZ(0deg);
    }
    75% {
        transform: translateY(-5px) rotateZ(-5deg);
    }
}

@keyframes nameGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
    }
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg);
    }
    50% {
        transform: translateY(-3px) rotateX(2deg);
    }
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.section {
    animation: sectionSlideIn 0.8s ease-out;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }
.section:nth-child(5) { animation-delay: 0.4s; }
.section:nth-child(6) { animation-delay: 0.5s; }
.section:nth-child(7) { animation-delay: 0.6s; }
.section:nth-child(8) { animation-delay: 0.7s; }

/* 3D Section Titles */
.section-title {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.section-title:hover {
    transform: translateZ(10px) rotateX(2deg);
    text-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
}

.section-title i {
    animation: floatingIcons 3s ease-in-out infinite;
}

/* 3D Contact Items */
.contact-item {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(2px) translateZ(5px) rotateY(2deg);
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.2);
}

/* 3D Skill Categories */
.skill-category {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateZ(15px) rotateX(3deg);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.15);
}

/* 3D Education Details */
.education-details {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.education-details:hover {
    transform: translateZ(10px) rotateY(3deg);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.1);
}

/* 3D Activities List */
.activities-list li {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.activities-list li:hover {
    transform: translateX(10px) translateZ(5px) rotateY(2deg);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

/* Theme toggle button styles */
.theme-toggle {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 10000 !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    border: 3px solid rgba(255, 255, 255, 0.4) !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95)) !important;
    color: white !important;
    font-size: 32px !important;
    cursor: pointer !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.theme-toggle:hover {
    transform: translateY(-5px) rotateX(10deg) scale(1.1);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
}

.theme-toggle:active {
    transform: translateY(-1px) rotateX(5deg) scale(1.05);
}

.theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

@keyframes themeTogglePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 15px 60px rgba(102, 126, 234, 0.7);
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .container {
        box-shadow: none;
        margin: 0;
        border-radius: 0;
    }
    
    .header {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .skill-tag {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .theme-toggle {
        display: none !important;
    }
} 