/* Reset & Base Styles */
:root {
    --primary-color: #000;
    --secondary-color: #333;
    --accent-color: #0071e3;
    --bg-color: #f5f5f7;
    --text-color: #1d1d1f;
    --light-text: #86868b;
    --card-bg: #fff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', Segoe UI, Helvetica, Roboto, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.25;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(245, 245, 247, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 0.5rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
}

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

.nav-links a {
    color: var(--secondary-color);
    font-weight: 500;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

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

.hero-content {
    max-width: 600px;
}

.hero h1 {
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    margin-bottom: 2rem;
    font-size: 1.25rem;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
}

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

.btn-secondary {
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.hero-image {
    position: absolute;
    right: -10%;
    width: 50%;
    height: 100%;
    background-image: url('https://via.placeholder.com/800x1000');
    background-size: cover;
    background-position: center;
    animation: fadeIn 1.5s ease 0.5s forwards;
    opacity: 0;
}

/* About Section */
.about {
    background-color: var(--card-bg);
    border-radius: 20px;
    margin: 2rem;
    padding: 4rem;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--light-text);
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.about-image {
    width: 40%;
    border-radius: 15px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text {
    width: 60%;
}

.about-text h3 {
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.skill-tag {
    background-color: var(--bg-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.skill-tag:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--accent-color);
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.tabs {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
}

.tab-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.tab-btn.active {
    text-decoration: underline;
    color: var(--accent-color);
}


.tab-content {
    margin-top: 1.5rem;
}

.timeline {
    margin-top: 3rem;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-color);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1.3rem;
    width: 2px;
    height: calc(100% - 1rem);
    background-color: #ddd;
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 0.3rem;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-subtitle {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.timeline-description {
    font-size: 0.95rem;
    color: var(--light-text);
}

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

.project-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Project Status Styles */
.project-status {
    position: relative;
    padding: 0;
    margin: 0 0 0.3rem 0;
    text-align: left;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.status-completed {
    background-color: #2ecc71;
    color: white;
}

.status-in-progress {
    background-color: #f39c12;
    color: white;
}

.status-pill i {
    margin-right: 0.3rem;
    font-size: 0.65rem;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--light-text);
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

.tech-tag {
    background-color: var(--bg-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.tech-tag:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--accent-color);
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
}

/* Certifications Section */
.certifications {
    background-color: var(--card-bg);
    border-radius: 20px;
    margin: 2rem;
    padding: 4rem;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Honors & Awards Section Styles */

.honors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.honor-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: 100%;
}

.honor-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
}

.honor-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.honor-info {
    padding: 1.5rem;
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.honor-info h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.honor-info p {
    color: var(--light-text);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.honor-links {
    display: flex;
    gap: 1rem;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: auto;
}

.honor-links a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
}

.certification-card {
    background-color: var(--bg-color);
    border-radius: 10px;
    padding: 1.5rem;
    transition: var(--transition);
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.certification-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.certification-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    background-color: var(--card-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--accent-color);
}

.certification-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.certification-issuer {
    font-size: 0.9rem;
    color: var(--light-text);
}

.certification-date {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-top: 0.5rem;
}

.certification-links {
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* Contact Section */
.contact {
    background-color: var(--card-bg);
    border-radius: 20px;
    margin: 6rem 2rem;
    padding: 4rem;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.contact-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.contact-info {
    width: 50%;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.contact-form {
    width: 50%;
    max-width: 600px;
    text-align: left;
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--card-bg);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(0, 113, 227, 0.3);
}

button[type="submit"] {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    background-color: var(--accent-color);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

button[type="submit"]:hover {
    background-color: #005bb5;
}

/* Footer */
footer {
    background-color: var(--card-bg);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent-color);
    color: white;
}

.copyright {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Journey Page Styles */
.journey-hero {
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(0, 113, 227, 0.1) 100%);
}

.journey-section {
    background-color: var(--card-bg);
    border-radius: 20px;
    margin: 2rem;
    padding: 6rem 4rem;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.journey-timeline {
    position: relative;
    margin-top: 4rem;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent-color), rgba(0, 113, 227, 0.3));
    transform: translateX(-50%);
}

.journey-phase {
    position: relative;
    margin-bottom: 6rem;
    display: flex;
    align-items: center;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.journey-phase.animate {
    opacity: 1;
    transform: translateY(0);
}

.journey-phase.reverse {
    flex-direction: row-reverse;
}

.journey-phase.reverse .phase-content {
    flex-direction: row-reverse;
}

.journey-phase.reverse .phase-number {
    right: 50%;
    left: auto;
    transform: translateX(50%);
}

.journey-phase.reverse .phase-info {
    text-align: right;
    padding-left: 0;
    padding-right: 2rem;
}

.phase-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), #005bb5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.3);
}

.phase-content {
    display: flex;
    width: 100%;
    gap: 3rem;
    align-items: center;
}

.phase-image {
    width: 50%;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.phase-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15);
}

.phase-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.phase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 113, 227, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.phase-image:hover .phase-overlay {
    opacity: 1;
}

.phase-overlay i {
    font-size: 3rem;
    color: white;
    transform: scale(0.8);
    transition: var(--transition);
}

.phase-image:hover .phase-overlay i {
    transform: scale(1);
}

.phase-info {
    width: 50%;
    padding-left: 2rem;
}

.phase-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.phase-timeline {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.phase-info p {
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.phase-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
}

.highlight-item i {
    width: 20px;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.highlight-item span {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.journey-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid #eee;
}

.journey-back-button {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
}

.journey-back-button .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
}

.journey-back-button .btn:hover {
    background-color: #005bb5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4);
}

.journey-back-button .btn i {
    font-size: 0.9rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-color), rgba(0, 113, 227, 0.05));
    border-radius: 15px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: var(--secondary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    margin: 2rem;
    border-radius: 20px;
}

.cta-content {
    padding: 6rem 2rem;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 180px;
}

.cta-buttons .btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.cta-buttons .btn-secondary {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.cta-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Responsive Design for Journey Page */
@media (max-width: 992px) {
    .journey-timeline::before {
        left: 30px;
    }

    .journey-phase {
        flex-direction: column !important;
        padding-left: 60px;
    }

    .journey-phase.reverse {
        flex-direction: column !important;
    }

    .phase-number {
        left: 30px !important;
        right: auto !important;
        transform: none !important;
    }

    .phase-content {
        flex-direction: column !important;
        gap: 2rem;
    }

    .phase-image,
    .phase-info {
        width: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .journey-section {
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    .journey-section {
        margin: 1rem;
        padding: 3rem 1.5rem;
    }

    .phase-image img {
        height: 200px;
    }

    .phase-info h3 {
        font-size: 1.5rem;
    }

    .journey-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .journey-back-button {
        margin-top: 3rem;
        padding-top: 1.5rem;
    }

    .journey-back-button .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .cta-content {
        padding: 4rem 1rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content, .contact-content {
        flex-direction: column;
    }

    .about-image, .about-text, .contact-info, .contact-form {
        width: 100%;
    }

    .hero-image {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .about, .contact {
        margin: 1rem;
        padding: 2rem;
    }

    section {
        padding: 4rem 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .certifications {
        margin: 1rem;
        padding: 2rem;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }
}