/* Base Styles and Variables */
:root {
    --primary-color: #4a6cf7;
    --secondary-color: #6c757d;
    --accent-color: #fb3c7f;
    --background-color: #ffffff;
    --text-color: #333333;
    --text-light: #6c757d;
    --border-color: #e9ecef;
    --card-bg: #f8f9fa;
    --hover-color: #3a56ca;
    --section-padding: 100px 0;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

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

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

a:hover {
    color: var(--hover-color);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    line-height: 1.2;
}

p {
    margin-bottom: 15px;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

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

ul {
    list-style: none;
}

.highlight {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn.small {
    padding: 8px 16px;
    font-size: 14px;
}

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

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

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

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

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

header.scrolled {
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.menu {
    display: flex;
    gap: 30px;
}

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

.menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.menu li a:hover, .menu li a.active {
    color: var(--primary-color);
}

.menu li a:hover::after, .menu li a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    background-color: var(--background-color);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-light);
    font-weight: 600;
    min-height: 2.5rem; /* Prevents layout shift during animation */
}

.profession-text {
    color: var(--primary-color);
}

.cursor {
    display: inline-block;
    margin-left: 3px;
    width: 3px;
    animation: cursor-blink 1s infinite;
}

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

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
}

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

.hero-image {
    flex: 1;
    max-width: 300px;
    text-align: center;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about {
    padding: var(--section-padding);
    background-color: var(--card-bg);
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

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

.personal-details {
    margin-top: 30px;
}

.detail {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.detail i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 15px;
}

/* Experience Section */
.experience {
    padding: var(--section-padding);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 2px;
    background-color: var(--border-color);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-date {
    width: 45%;
    text-align: right;
    padding-right: 40px;
}

.timeline-date span {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.timeline-content {
    width: 45%;
    padding-left: 40px;
    padding-bottom: 20px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

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

.achievements {
    margin-top: 15px;
    list-style-type: disc;
    padding-left: 20px;
}

.achievements li {
    margin-bottom: 8px;
}

/* Projects Section */
.projects {
    padding: var(--section-padding);
    background-color: var(--card-bg);
}

.project-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 8px 20px;
    border-radius: 20px;
    transition: var(--transition);
    color: var(--text-color);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

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

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

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

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

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

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.project-info p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.project-links {
    display: flex;
    gap: 10px;
}

/* Skills Section */
.skills {
    padding: var(--section-padding);
}

.skills-content {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.skills-category {
    flex: 1;
    min-width: 300px;
}

.skills-category h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skill-bar {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
}

.skill-progress {
    height: 10px;
    background-color: var(--border-color);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.skill-progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 5px;
    transition: width 1s ease;
}

.skill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.skill-tag {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    transition: var(--transition);
    cursor: default;
}

.skill-tag:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background-color: var(--card-bg);
}

.contact-content {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

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

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

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

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.2);
}

/* Footer */
footer {
    background-color: #272727;
    color: white;
    padding: 30px 0;
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Responsive Styles */
@media (max-width: 992px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .hero {
        padding-top: 150px;
        padding-bottom: 80px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .timeline::before {
        left: 40px;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-item::before {
        left: 40px;
    }
    
    .timeline-date, 
    .timeline-content {
        width: 100%;
        text-align: left;
        padding-left: 80px;
        padding-right: 0;
    }
    
    .timeline-date {
        margin-bottom: 10px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }
    
    .menu.active {
        max-height: 300px;
    }
    
    .menu li {
        width: 100%;
    }
    
    .menu li a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .skills-content {
        flex-direction: column;
        gap: 50px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .project-filters {
        flex-direction: column;
        width: 80%;
        margin: 0 auto 30px;
    }
    
    .filter-btn {
        width: 100%;
    }
}
    