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

body {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Profile Section */
.profile-section {
    background-color: #f8f9fa;
    padding: 50px 0;
    text-align: center;
    border-bottom: 3px solid #000;
}

.profile-image {
    margin-bottom: 20px;
}

.profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.profile-section h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: bold;
}

.contact-info {
    font-size: 16px;
    line-height: 1.8;
}

.contact-info p {
    margin: 5px 0;
}

/* Section Styles */
.section {
    padding: 40px 0;
    border-bottom: 2px solid #e0e0e0;
}

.section h2 {
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Education Section */
.education-item {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.education-item:last-child {
    border-bottom: none;
}

.education-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.education-left {
    flex: 1;
    min-width: 60%;
}

.education-left h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.education-left .degree {
    font-style: italic;
    margin-bottom: 5px;
}

.education-left .cgpa {
    margin-top: 5px;
}

.education-right {
    text-align: right;
    min-width: 35%;
}

.education-right .location {
    font-style: italic;
    margin-bottom: 3px;
}

.education-right .date {
    font-style: italic;
    color: #555;
}

.education-image-placeholder {
    margin: 15px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.institution-image {
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #f0f0f0;
}

.coursework {
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.7;
}

.coursework p {
    margin-bottom: 10px;
}

.description {
    margin-top: 15px;
    text-align: justify;
}

/* Projects Section */
.project-item {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #ddd;
}

.project-item:last-child {
    border-bottom: none;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.project-header h3 {
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.github-link {
    display: inline-flex;
    align-items: center;
}

.github-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.project-date {
    font-style: italic;
    color: #555;
    font-size: 14px;
}

.project-description {
    text-align: justify;
    line-height: 1.7;
}

/* Position of Responsibility */
.responsibility-item {
    margin-bottom: 20px;
}

.responsibility-item h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.responsibility-item p {
    text-align: justify;
    line-height: 1.7;
}

/* Achievements Section */
.achievements-list {
    list-style: none;
    padding-left: 0;
}

.achievements-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.7;
}

.achievements-list li:before {
    content: "•";
    position: absolute;
    left: 5px;
    font-size: 20px;
    font-weight: bold;
}

/* Skills Section */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.skill-tag {
    background-color: #f0f0f0;
    padding: 10px 18px;
    border-radius: 5px;
    font-size: 15px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 25px 0;
    margin-top: 30px;
}

footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .profile-section h1 {
        font-size: 32px;
    }
    
    .profile-image img {
        width: 150px;
        height: 150px;
    }
    
    .education-header,
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .education-right {
        text-align: left;
        margin-top: 10px;
    }
    
    .section h2 {
        font-size: 24px;
    }
    
    .institution-image {
        max-width: 100%;
    }
    
    .skills-list {
        gap: 8px;
    }
    
    .skill-tag {
        font-size: 14px;
        padding: 8px 14px;
    }
}
    margin: 15px auto;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.profile-image {
    flex: 1;
    text-align: center;
}

.profile-image img {
    max-width: 300px;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.about-text {
    flex: 2;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
}

/* Gallery */
.gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    flex: 1;
    max-width: 400px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

/* Education Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 40px;
}

.timeline:before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.timeline-item h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.timeline-date {
    color: #777;
    font-style: italic;
    margin-bottom: 10px;
}

/* Achievements List */
.achievements-list {
    max-width: 800px;
    margin: 0 auto;
    list-style-type: none;
}

.achievements-list li {
    background-color: white;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
    padding-left: 35px;
}

.achievements-list li:before {
    content: '🏆';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Skills Section */
.skills-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.skill-category {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 25px;
    flex: 1;
    min-width: 250px;
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.skills-list {
    list-style-type: none;
}

.skills-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 25px;
}

.skills-list li:last-child {
    border-bottom: none;
}

.skills-list li:before {
    content: '▹';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Text Analyzer Section */
.text-analyzer-container {
    max-width: 800px;
    margin: 0 auto;
}

.input-container {
    margin-bottom: 30px;
}

.input-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    transition: var(--transition);
}

button:hover {
    background-color: var(--secondary-color);
}

.results-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 25px;
    display: none;
}

.results-container h3 {
    margin-bottom: 20px;
    text-align: center;
}

.result-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.result-card h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
}

footer a {
    color: var(--light-color);
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .timeline:before {
        left: 31px;
    }
    
    .timeline-item {
        padding: 15px 15px 15px 60px;
    }
    
    .skills-container {
        flex-direction: column;
    }
}
