/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2a2a72;
    --secondary-color: #009ffd;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a2e;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Sections */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
}

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

.about-text {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-3d {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border: 4px solid var(--primary-color);
}

.about-social {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.2rem;
}

.social-icon {
    width: 32px;
    height: 32px;
    filter: grayscale(1) brightness(0.7);
    transition: filter 0.3s, transform 0.3s;
}

.social-icon:hover {
    filter: none;
    transform: scale(1.15);
}

.about-contacts {
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Projects Section */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem 2rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.project-card {
    background: #fff;
    color: var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    margin: 1rem;
    min-width: 250px;
    max-width: 340px;
    border: 1.5px solid #e0e0e0;
    border-left-width: 8px;
    opacity: 0;
    transform: translateY(40px) scale(0.98);
}

.project-card:nth-child(1) { border-left: 8px solid #22356f; } /* Navy */
.project-card:nth-child(2) { border-left: 8px solid #bfa14a; } /* Gold */
.project-card:nth-child(3) { border-left: 8px solid #2e7d32; } /* Green */
.project-card:nth-child(4) { border-left: 8px solid #8b1e3f; } /* Burgundy */

.project-card:hover {
    transform: translateY(-8px) scale(1.04) rotateY(4deg) rotateX(2deg);
    box-shadow: 0 16px 40px rgba(34,53,111,0.18);
}

.project-card.animated {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s, transform 0.7s;
}

.project-info h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.project-btn {
    background: var(--secondary-color);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: background 0.3s, transform 0.3s;
    margin-top: auto;
}

.project-btn:hover {
    background: var(--primary-color);
    transform: scale(1.07);
}

/* Certifications Section */
.certifications-flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cert-card {
    background: #fff;
    color: var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    border: 1.5px solid #e0e0e0;
    border-left-width: 8px;
}

.cert-card:nth-child(1) { border-left: 8px solid #22356f; } /* Navy */
.cert-card:nth-child(2) { border-left: 8px solid #bfa14a; } /* Gold */
.cert-card:nth-child(3) { border-left: 8px solid #2e7d32; } /* Green */
.cert-card:nth-child(4) { border-left: 8px solid #8b1e3f; } /* Burgundy */
.cert-card:nth-child(5) { border-left: 8px solid #1565c0; } /* Blue */

.cert-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(34,53,111,0.18);
}

.cert-info {
    flex: 1;
    width: 100%;
}

.cert-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primary-color);
}

.cert-card p {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color: var(--text-color);
}

.cert-btn {
    background: var(--accent-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.cert-btn:hover {
    background: #ff3b3b;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .certifications-flex-container {
        flex-direction: column;
        align-items: center;
    }
    
    .cert-card {
        width: 100%;
        max-width: 100%;
    }
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    perspective: 1000px;
    padding: 2rem;
}

.skill-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 300px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: rotateY(10deg) rotateX(5deg) translateZ(20px);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

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

.skill-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.skill-progress {
    background: #f0f0f0;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    position: relative;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar::after {
    content: attr(data-progress);
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.skill-card:nth-child(1) .progress-bar { background: linear-gradient(90deg, #e44d26, #f16529); }
.skill-card:nth-child(2) .progress-bar { background: linear-gradient(90deg, #f7df1e, #f0db4f); }
.skill-card:nth-child(3) .progress-bar { background: linear-gradient(90deg, #3776ab, #306998); }
.skill-card:nth-child(4) .progress-bar { background: linear-gradient(90deg, #007396, #b07219); }
.skill-card:nth-child(5) .progress-bar { background: linear-gradient(90deg, #61dafb, #00d8ff); }
.skill-card:nth-child(6) .progress-bar { background: linear-gradient(90deg, #00599c, #004482); } /* C */
.skill-card:nth-child(7) .progress-bar { background: linear-gradient(90deg, #004482, #00599c); } /* C++ */

@keyframes progressFill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.skill-card.animate .progress-bar {
    animation: progressFill 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.glitch {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.languages-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

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

.lang-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.lang-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.lang-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.lang-badge:hover::before {
    left: 100%;
}

.lang-badge:nth-child(1) {
    background: linear-gradient(135deg, #4a00e0, #8e2de2);
}

.lang-badge:nth-child(2) {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.lang-badge:nth-child(3) {
    background: linear-gradient(135deg, #00b4db, #0083b0);
}

.lang-badge:nth-child(4) {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.education-flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.edu-card {
    background: #fff;
    color: var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    padding: 2rem 2.5rem;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    border-left: 8px solid #22356f;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.edu-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.edu-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.edu-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.edu-row:last-child {
    border-bottom: none;
}

.edu-row p {
    margin: 0;
    font-size: 1rem;
    flex: 1;
    min-width: 200px;
}

.edu-row strong {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .education-flex-container {
        flex-direction: column;
        align-items: center;
    }
    
    .edu-card {
        width: 100%;
        padding: 1.5rem;
    }
    
    .edu-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .edu-row p {
        min-width: 100%;
    }
}

/* Gallery Styles */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background: white;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-image {
    width: 100%;
    height: 300px;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .gallery-image {
        height: 250px;
    }
    
    .gallery-caption {
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.5);
    }
}

/* Gallery Carousel Styles */
.gallery-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.carousel-slide:hover .gallery-caption {
    transform: translateY(0);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 2;
    transition: background 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #333;
}

@media (max-width: 768px) {
    .carousel-slide img {
        height: 300px;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* Resume Section Styles */
.resume-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.resume-content {
    padding: 2rem;
}

.resume-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.resume-header h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.resume-title {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.resume-section {
    margin-bottom: 2rem;
}

.resume-section h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.resume-details {
    padding-left: 1rem;
}

.resume-item {
    margin-bottom: 1.5rem;
}

.resume-item h5 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.resume-item p {
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

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

.skill-item {
    background: var(--light-bg);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: white;
}

.resume-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.resume-btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-btn {
    background: var(--primary-color);
    color: white;
}

.print-btn {
    background: var(--secondary-color);
    color: white;
}

.resume-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .resume-container {
        padding: 1rem;
    }
    
    .resume-content {
        padding: 1rem;
    }
    
    .resume-actions {
        flex-direction: column;
    }
    
    .resume-btn {
        width: 100%;
        text-align: center;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
} 