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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    padding: 15px 20px;
}

.nav-row {
    display: table;
    width: 100%;
}

.nav-left {
    display: table-cell;
    width: 33.33%;
}

.nav-center {
    display: table-cell;
    width: 33.33%;
    text-align: center;
}

.nav-right {
    display: table-cell;
    width: 33.33%;
    text-align: right;
}

#toggleStylesBtn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

#toggleStylesBtn:hover {
    background: #0056b3;
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-block;
    overflow: hidden;
}

.nav-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    margin-right: 15px;
    font-size: 14px;
    white-space: nowrap;
}

.nav-links a:last-child {
    margin-right: 0;
}

.main-content {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.hero-section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.hero-row {
    display: table;
    width: 100%;
}

.profile-image-cell {
    display: table-cell;
    width: 150px;
    text-align: center;
    vertical-align: top;
}

.spacer-cell {
    display: table-cell;
    width: 50px;
    text-align: center;
}

.profile-info-cell {
    display: table-cell;
    vertical-align: top;
}

.profile-image {
    width: 120px;
    height: 120px;
    display: inline-block;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.main-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-info h1 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.profile-title {
    font-size: 1.3em;
    color: #007bff;
    margin-bottom: 15px;
    font-weight: bold;
}

.profile-description {
    font-size: 1.1em;
    color: #666;
    line-height: 1.7;
}

.spacer {
    height: 60px;
}

.section-divider {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 40px 0;
}

.cards-section {
    display: table;
    width: 100%;
    border-spacing: 30px 0;
}

.cards-row {
    display: table-row;
}

.card-cell {
    display: table-cell;
    width: 33.33%;
    vertical-align: top;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.card-image {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    line-height: 150px;
    color: white;
    font-size: 24px;
}

.card-image.tech {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.card-image.team {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.card-image.innovation {
    background: linear-gradient(135deg, #6f42c1, #e83e8c);
}

.card h3 {
    font-size: 1.4em;
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.ai-button-container {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

.ai-content-button {
    display: inline-block;
    background: linear-gradient(135deg, #6f42c1, #e83e8c);
    color: white;
    text-decoration: none;
    padding: 20px 60px;
    border-radius: 50px;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(111, 66, 193, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ai-content-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(111, 66, 193, 0.4);
    background: linear-gradient(135deg, #5a2d91, #d63384);
}

@media (max-width: 768px) {
    .hero-row {
        display: block;
    }
    
    .profile-image-cell,
    .spacer-cell,
    .profile-info-cell {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .spacer-cell {
        height: 20px;
    }
    
    .cards-section {
        display: block;
    }
    
    .cards-row {
        display: block;
    }
    
    .card-cell {
        display: block;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .nav-row {
        display: block;
    }
    
    .nav-left,
    .nav-center,
    .nav-right {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .nav-center,
    .nav-right {
        margin-top: 10px;
    }
    
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-links a {
        margin-right: 0;
        font-size: 13px;
    }
    
    .ai-content-button {
        padding: 15px 40px;
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    .ai-button-container {
        margin-top: 40px;
        margin-bottom: 30px;
    }
}

/* Portfolio Page */

.projects-section {
    background: #f7f2f9; /* slightly brighter than the main background */
    /* border-radius: 24px; */
    padding: 32px 24px;
    margin: 48px 0px 24px 0px;
    /* box-shadow: 0 4px 24px rgba(0,0,0,0.06); */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* max-width: 1000px; */
    /* justify-content: center; This will center children vertically if the section has a fixed height */
    /* min-height: 300px; Adjust as needed */
  }
  
  .projects-title {
    font-size: 2rem;
    text-align: center;
    /* justify-content: center; */
    font-weight: bold;
    margin-top: 24px;
    margin-bottom:5px;
    color: #414141;
  }
  
  .projects-scroll {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding-bottom: 16px;
    padding-top: 16px;
    scrollbar-width: thin;
    max-width: 100%;
    scrollbar-color: var(--light-blue) #f7f2f9;
  }
  
  .projects-scroll::-webkit-scrollbar {
    height: 8px;
  }
  .projects-scroll::-webkit-scrollbar-thumb {
    background: #B98667;
    border-radius: 4px;
  }
  .projects-scroll::-webkit-scrollbar-track {
    background: #f7f2f9;
  }
  
  .project-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    min-width: 400px;
    /* max-height: 340px; */
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    padding: 0 0 24px 0;
    color: var(--foreground);
    font-size: 1.1rem;
    /* flex: 0 0 auto; */
    /* display: flex; */
    /* flex-direction: column; */
    align-items: center;
    margin: 0 12px;
    /* overflow: hidden; */
  }
  
  .project-card:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease-in-out;
  }
  
  .project-image {
    width: 100%;
    height: 240px;
    object-fit: contain;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }
  
  .project-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 18px 20px 8px 20px;
    text-align: center;
  }
  
  .project-description {
    color: #555;
    font-size: 0.9rem;
    margin: 0 20px;
    /* display: block; */
    /* align-items: center; */
    /* justify-content: center; */
    text-align: center;
    /* word-break: break-word; */
  }
  
  .project-link {
    color: #3586c7;
    text-decoration: underline;
    font-weight: 500;
    margin-left: 6px;
  }
  .project-link:hover {
    color: #69a7cf;
  }
  
  .project-tech {
    text-align: center;
    color: #69a7cf;         /* or any accent color you like */
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 8px;
    margin-top: 2px;
    letter-spacing: 0.02em;
  }
  
  .projects-divider {
    width: 120px;
    margin: 0.5rem auto 1.2rem auto;
    border: none;
    height: 6px;
    background: #69a7cf;
    border-radius: 6px;
  }

/* Qualifications Page Styles */
.resume-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.resume-section h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 20px;
}

.resume-section p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.resume-link {
    display: inline-block;
    background: #007bff;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background 0.3s;
}

.resume-link:hover {
    background: #0056b3;
}

.resume-embed {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.resume-embed iframe {
    border-radius: 10px;
}

.qualifications-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.qualification-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.qualification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.qualification-card h2 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 25px;
    border-bottom: 3px solid #007bff;
    padding-bottom: 10px;
}

.qualification-card h3 {
    font-size: 1.3em;
    color: #007bff;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.qualification-card ul {
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.qualification-card li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.qualification-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .qualifications-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .resume-section {
        margin: 20px auto;
        padding: 20px;
    }
    
    .resume-section h1 {
        font-size: 2em;
    }
    
    .qualification-card {
        padding: 20px;
    }
}

/* Service Page Styles */
.service-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.service-block {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 30px;
}

.service-image {
    position: relative;
    flex-shrink: 0;
}

.service-image img {
    width: 300px;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
}

.service-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.service-content {
    flex: 1;
}

.service-content h2 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 15px;
}

.service-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .service-block {
        flex-direction: column;
        gap: 20px;
    }
    
    .service-image img {
        width: 100%;
        max-width: 300px;
    }
}

/* CRITICAL: Hide Style 2 elements in style1 - Must be at the end */
.style2-layout,
.style2-content,
.style2-main {
    display: none !important;
}