/* Base Styles */
:root {
    --primary-color: #0a66c2;
    --secondary-color: #f5f5f5;
    --text-color: #333;
    --text-light: #777;
    --bg-color: #fff;
    --card-bg: #f9f9f9;
    --border-color: #eaeaea;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

.dark-theme {
    --primary-color: #4f93e3;
    --secondary-color: #2a2a2a;
    --text-color: #f5f5f5;
    --text-light: #aaa;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --border-color: #333;
    --shadow: 0 5px 15px rgba(0,0,0,0.3);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
    font-size: 1rem;
}

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

.primary-btn:hover {
    background: var(--primary-color);
    opacity: 0.9;
    transform: translateY(-3px);
}

.secondary-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

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

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a.active::after,
.nav-links a:hover::after {
    width: 100%;
}

.theme-toggle {
    cursor: pointer;
    margin: 0 15px;
    color: var(--text-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: var(--text-color);
    transition: var(--transition);
}

/* Home Section */
#home {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.home-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.home-text {
    flex: 1;
}

.home-text h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.home-text h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.home-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.home-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.profile-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.profile-placeholder i {
    font-size: 100px;
    color: var(--primary-color);
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* About Section */
.about-content {
    display: flex;
    justify-content: center;
}

.about-text {
    max-width: 800px;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 50px;
}

.timeline-dot {
    position: absolute;
    left: 15px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid var(--bg-color);
}

.timeline-date {
    position: relative;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.timeline-content h4 {
    margin-bottom: 15px;
    color: var(--text-light);
    font-weight: 400;
}

.timeline-content ul {
    padding-left: 20px;
}

.timeline-content li {
    margin-bottom: 8px;
    position: relative;
    list-style-type: disc;
}

/* Education Section */
.education-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.edu-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 300px;
    max-width: 550px;
    transition: var(--transition);
}

.edu-card:hover {
    transform: translateY(-10px);
}

.edu-icon {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

.edu-card h4 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.edu-date {
    color: var(--text-light);
    margin-bottom: 15px;
    font-style: italic;
}

.edu-details h5 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.skill-tag {
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.skill-tag:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

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

.project-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

.project-date {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 15px;
}

.project-card p {
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tag {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* Activities */
.activities-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.activity-item {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
    transition: var(--transition);
}

.activity-item:hover {
    transform: translateY(-10px);
}

.activity-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.activity-item h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Open Sans', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .home-content {
        flex-direction: column;
        text-align: center;
    }
    
    .home-text {
        order: 2;
    }
    
    .home-image {
        order: 1;
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding-top: 30px;
        transition: 0.5s;
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .home-text h1 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .project-card, 
    .activity-item {
        min-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .home-text h1 {
        font-size: 2.2rem;
    }
    
    .home-text h2 {
        font-size: 1.5rem;
    }
    
    .home-text p {
        font-size: 1rem;
    }
    
    .profile-placeholder {
        width: 220px;
        height: 220px;
    }
    
    .profile-placeholder i {
        font-size: 80px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-dot {
        left: 10px;
    }
}

/* Typewriter effect */
.typewriter-container {
    height: 70px;
    margin-bottom: 10px;
}

.txt-rotate {
    color: var(--primary-color);
    position: relative;
}

.txt-rotate::after {
    content: '|';
    position: absolute;
    right: -5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Enhanced skill tags with icons */
.skill-tag i {
    margin-right: 5px;
}

/* Add this to your styles.css */
.send-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 4px solid #28a745;
    color: #28a745;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.send-success i {
    font-size: 1.5rem;
    margin-right: 10px;
}
/* Add these styles to your existing styles.css file */

/* Hobbies Section */
.hobbies-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.hobby-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.hobby-card:hover {
    transform: translateY(-10px);
}

.hobby-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

.hobby-card p {
    margin-bottom: 15px;
}

.hobby-image {
    margin-top: 15px;
    overflow: hidden;
    border-radius: 8px;
}

.hobby-img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.hobby-img:hover {
    transform: scale(1.05);
}

/* Style for profile image */
.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
    border: 5px solid var(--bg-color);
    transition: var(--transition);
}

.profile-img:hover {
    transform: scale(1.05);
}

@media screen and (max-width: 480px) {
    .profile-img {
        width: 220px;
        height: 220px;
    }
}

/* Resume Section Styles */
#resume {
    padding: 80px 0;
    background-color: var(--section-bg);
}

.resume-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.resume-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.resume-btn {
    font-size: 1.1rem;
    margin-bottom: 30px;
    padding: 12px 25px;
    transition: all 0.3s ease;
}

.resume-btn i {
    margin-right: 10px;
}

.resume-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.resume-preview {
    width: 100%;
    max-width: 600px;
    height: 400px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
    background-color: var(--card-bg);
}

.resume-preview-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--text-muted);
}

.resume-preview-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.resume-preview-placeholder p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* Responsive styles for resume section */
@media (max-width: 768px) {
    .resume-preview {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .resume-preview {
        height: 250px;
    }
    
    .resume-btn {
        font-size: 1rem;
        padding: 10px 20px;
    }
}