* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto Mono', monospace;
    background-color: #f44336;
    min-height: 100vh;
    overflow-x: hidden;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 0 10%;
    transition: all 0.4s ease;
}

.hero-content {
    max-width: 500px;
    z-index: 2;
    transition: all 0.4s ease;
}

.intro {
    font-size: 1.1rem;
    color: #2d2d2d;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.name {
    font-family: 'Roboto', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: 2px;
    margin-bottom: 10px;
    transition: font-size 0.4s ease;
}

.title {
    font-size: 1.1rem;
    color: #2d2d2d;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
    text-decoration: none;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #1a1a1a;
    color: #f44336;
}

.hero-image {
    position: relative;
    width: 50%;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: all 0.4s ease;
}

.image-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: all 0.4s ease;
}

.profile-pic {
    height: 100%;
    width: auto;
    object-fit: cover;
    object-position: top;
    filter: grayscale(100%) contrast(1.1);
    mix-blend-mode: multiply;
    transition: opacity 0.5s ease, width 0.4s ease, height 0.4s ease, max-width 0.4s ease;
}

.pic1 {
    display: block;
    opacity: 1;
}

.pic2 {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    opacity: 0;
}

.image-wrapper:hover .pic1 {
    opacity: 0;
}

.image-wrapper:hover .pic2 {
    opacity: 1;
}

/* ==================== */
/* Info Section (About, Experience, Tech Stack) */
/* ==================== */

.info-section {
    background-color: #ffffff;
    padding: 80px 10%;
    min-height: 100vh;
}

.projects-section {
    padding: 50px 10% 30px 10%;
    min-height: auto;
}

.certifications-section {
    padding: 30px 10% 60px 10%;
    min-height: auto;
}

.info-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.left-column {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.right-column {
    flex: 0.8;
}

.card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 30px;
}

.card-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon {
    font-size: 1.2rem;
}

/* About Card */
.about-text {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* Tech Stack Card */
.stack-category {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    margin-top: 20px;
}

.stack-category:first-of-type {
    margin-top: 0;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: #333;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.tag:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* Experience Card */
.experience-card {
    height: fit-content;
}

.timeline {
    position: relative;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    border-left: 2px solid #e5e5e5;
    margin-left: 8px;
    padding-left: 30px;
    position: relative;
}

.timeline-item:first-child {
    padding-top: 0;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -8px;
    top: 20px;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 50%;
}

.timeline-item:first-child .timeline-dot {
    top: 0;
}

.timeline-item.current .timeline-dot {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.timeline-company {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: #666;
}

.timeline-year {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: #999;
    white-space: nowrap;
}

/* ==================== */
/* Projects Section */
/* ==================== */

.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title .icon {
    font-size: 1.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-fb-link {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    background: #fff;
    transition: all 0.3s ease;
}

.project-fb-link:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.project-image {
    background: #f5f5f5;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
}

.project-content {
    padding: 25px;
}

.project-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.project-description {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tags .tag {
    font-size: 0.75rem;
    padding: 5px 12px;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: #1a1a1a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #f44336;
}

/* ==================== */
/* Certifications Section */
/* ==================== */

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.certification-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certification-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.certification-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.certification-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.cert-img-icon {
    background: none;
    border: 1px solid #e5e5e5;
}

.cert-img-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.certification-content {
    flex: 1;
}

.certification-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.certification-issuer {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 3px;
}

.certification-date {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: #999;
}

.certification-link {
    width: 40px;
    height: 40px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.certification-link:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

/* Certification with Image */
.certification-card.has-image {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}

.certification-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-bottom: 1px solid #e5e5e5;
}

.certification-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.certification-card.has-image:hover .certification-image img {
    transform: scale(1.05);
}

.certification-card.has-image .certification-content {
    padding: 20px;
}

.certification-card.has-image .certification-link {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
}

/* Certificate Modal */
.cert-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.cert-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
}

.cert-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cert-modal-close:hover {
    color: #f44336;
}

/* ==================== */
/* Social Links Card */
/* ==================== */

.social-card {
    margin-top: 30px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    text-decoration: none;
    color: #1a1a1a;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.social-link i {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.email-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.email-address {
    font-size: 0.75rem;
    color: #888;
    transition: color 0.3s ease;
}

.social-link:hover .email-address {
    color: rgba(255, 255, 255, 0.7);
}


/* ==================== */
/* Footer */
/* ==================== */

.footer {
    background: #1a1a1a;
    padding: 40px 10%;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.footer-social-link {
    width: 45px;
    height: 45px;
    border: 1px solid #444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: #f44336;
    border-color: #f44336;
    transform: translateY(-3px);
}

.footer-text {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: #888;
}

/* Scroll Reveal Animation */
.card,
.project-card,
.certification-card,
.section-title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.card.revealed,
.project-card.revealed,
.certification-card.revealed,
.section-title.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for cards */
.project-card:nth-child(1) { transition-delay: 0.1s; }
.project-card:nth-child(2) { transition-delay: 0.2s; }
.project-card:nth-child(3) { transition-delay: 0.3s; }

.certification-card:nth-child(1) { transition-delay: 0.1s; }
.certification-card:nth-child(2) { transition-delay: 0.2s; }
.certification-card:nth-child(3) { transition-delay: 0.3s; }
.certification-card:nth-child(4) { transition-delay: 0.4s; }
.certification-card:nth-child(5) { transition-delay: 0.5s; }

/* Responsive Design */
@media (max-width: 968px) {
    .info-container {
        flex-direction: column;
    }

    .info-section {
        padding: 60px 5%;
    }

    .projects-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
        justify-content: center;
    }

    .section-header {
        text-align: center;
    }

    .hero {
        flex-direction: column;
        padding: 60px 5% 0 5%;
        text-align: center;
        min-height: auto;
    }

    .hero-content {
        order: 1;
        margin-bottom: 40px;
    }

    .hero-image {
        order: 2;
        width: 100%;
        height: auto;
        justify-content: center;
    }

    .image-wrapper {
        height: auto;
        justify-content: center;
    }

    .profile-pic {
        display: block;
        height: auto;
        width: 90%;
        max-width: 550px;
    }

    .pic1 {
        display: block;
    }

    .pic2 {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 550px;
        height: auto;
    }

    .name {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2.5rem;
    }

    .intro,
    .title {
        font-size: 0.9rem;
    }

    .btn {
        padding: 14px 30px;
        font-size: 0.8rem;
    }
}
