/* Reset and base styles */
* {
    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, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #ffffff;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3182ce;
}

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

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #f7fafc;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #3182ce;
    color: white;
}

.btn-primary:hover {
    background-color: #2c5aa0;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #3182ce;
}

.btn-outline {
    background-color: transparent;
    color: #3182ce;
    border: 2px solid #3182ce;
}

.btn-outline:hover {
    background-color: #3182ce;
    color: white;
}

/* Terminal Window */
.terminal-window {
    background-color: #1a202c;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.terminal-header {
    background-color: #2d3748;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-button.red {
    background-color: #fc8181;
}

.terminal-button.yellow {
    background-color: #f6e05e;
}

.terminal-button.green {
    background-color: #68d391;
}

.terminal-title {
    color: #e2e8f0;
    font-size: 0.875rem;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.875rem;
}

.terminal-line {
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.typing {
    animation: blink 1s infinite;
}

.cursor {
    background-color: #68d391;
    animation: blink 1s infinite;
}

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

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a202c;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: #f7fafc;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.profile-card {
    background-color: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.profile-info h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.profile-subtitle {
    font-size: 1.2rem;
    color: #3182ce;
    font-weight: 500;
    margin-bottom: 1rem;
}

.profile-description {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
}

.about-sections {
    display: grid;
    gap: 3rem;
}

.about-section {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.about-section h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline {
    margin-bottom: 2rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f7fafc;
    border-radius: 6px;
}

.timeline-date {
    font-weight: 600;
    color: #3182ce;
    min-width: 100px;
    font-size: 0.9rem;
}

.timeline-content {
    color: #2d3748;
    font-weight: 500;
}

.certifications h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.cert-item {
    padding: 1rem;
    background-color: #f7fafc;
    border-radius: 6px;
    border-left: 4px solid #3182ce;
}

.cert-item strong {
    display: block;
    color: #1a202c;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cert-item span {
    color: #4a5568;
    font-size: 0.9rem;
}

.tech-approach {
    display: grid;
    gap: 1.5rem;
}

.approach-item {
    padding: 1.5rem;
    background-color: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.approach-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.approach-item p {
    color: #4a5568;
    line-height: 1.6;
}

.motivation {
    padding: 1.5rem;
    background-color: #f7fafc;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.motivation p {
    color: #2d3748;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.motivation-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.motivation-point {
    padding: 1rem;
    background-color: white;
    border-radius: 6px;
    border-left: 4px solid #48bb78;
}

.motivation-point strong {
    display: block;
    color: #1a202c;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.motivation-point span {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
}

.personal-background {
    display: grid;
    gap: 1.5rem;
}

.background-item {
    padding: 1.5rem;
    background-color: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #805ad5;
}

.background-item strong {
    display: block;
    color: #1a202c;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.background-item p {
    color: #4a5568;
    line-height: 1.6;
}

.about-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.about-cta p {
    color: #4a5568;
    margin-bottom: 1rem;
}

/* Experience Section */
.experience {
    padding: 80px 0;
    background-color: white;
}

.experience-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.experience-item {
    background-color: #f7fafc;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.experience-date {
    color: #3182ce;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.experience-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.experience-company {
    font-size: 1.2rem;
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.experience-description {
    margin-bottom: 2rem;
}

.experience-description p {
    font-size: 1.1rem;
    color: #2d3748;
    line-height: 1.6;
}

.experience-projects {
    margin-bottom: 2rem;
}

.exp-project {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3182ce;
}

.exp-project:last-child {
    margin-bottom: 0;
}

.exp-project h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
}

.exp-project-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.exp-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.exp-feature strong {
    color: #2d3748;
    font-weight: 600;
    min-width: 100px;
    flex-shrink: 0;
}

.exp-feature span {
    color: #4a5568;
    line-height: 1.5;
}

.experience-achievements {
    margin-bottom: 2rem;
}

.experience-achievements h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
}

.experience-achievements ul {
    list-style: none;
    padding: 0;
}

.experience-achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #4a5568;
    line-height: 1.6;
}

.experience-achievements li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
}

.experience-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.tech-badge.python {
    background-color: #3776ab;
}

.tech-badge.flask {
    background-color: #000000;
}

.tech-badge.smtp {
    background-color: #ea4335;
}

.tech-badge.gmail {
    background-color: #ea4335;
}

.tech-badge.testing {
    background-color: #38a169;
}

.tech-badge.deployment {
    background-color: #805ad5;
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background-color: #f7fafc;
}

.featured-project {
    background-color: white;
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.project-title {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a202c;
}

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

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #e2e8f0;
    color: #4a5568;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge.featured {
    background-color: #3182ce;
    color: white;
}

.project-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.project-features {
    margin-bottom: 2rem;
}

.project-features h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.feature-item {
    padding: 1rem;
    background-color: #f7fafc;
    border-radius: 6px;
}

.feature-item strong {
    display: block;
    color: #3182ce;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-item span {
    color: #4a5568;
    font-size: 0.9rem;
}

.personal-contribution {
    margin-bottom: 2rem;
}

.personal-contribution h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

.contribution-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3182ce;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #4a5568;
}

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

.code-window {
    background-color: #1a202c;
    border-radius: 8px;
    overflow: hidden;
}

.code-header {
    background-color: #2d3748;
    padding: 0.75rem 1rem;
    color: #e2e8f0;
    font-size: 0.875rem;
}

.code-body {
    padding: 1.5rem;
    overflow-x: auto;
}

.code-body pre {
    margin: 0;
}

.code-body code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Other Projects */
.other-projects {
    margin-top: 4rem;
}

.other-projects h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1a202c;
}

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

.project-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.project-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a202c;
}

.project-card h4 a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-card h4 a:hover {
    color: #3182ce;
}

.project-card p {
    margin-bottom: 1.5rem;
    color: #4a5568;
}

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

.tech-tag {
    padding: 0.25rem 0.75rem;
    background-color: #e2e8f0;
    color: #4a5568;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Skills Section */
.skills {
    padding: 80px 0;
    background-color: white;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1a202c;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.skill-name {
    font-weight: 500;
    color: #2d3748;
    min-width: 120px;
}

.skill-bar {
    flex: 1;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #3182ce, #667eea);
    transition: width 0.3s ease;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #f7fafc;
    text-align: center;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #4a5568;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: white;
    color: #3182ce;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.contact-email {
    min-width: 300px;
}

/* Footer */
.footer {
    padding: 2rem 0;
    background-color: #2d3748;
    color: #e2e8f0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 0.75rem;
        font-size: 0.9rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

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

    .about-content {
        padding: 0 1rem;
    }

    .profile-card {
        padding: 1.5rem;
    }

    .about-section {
        padding: 1.5rem;
    }

    .timeline-item {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .timeline-date {
        min-width: auto;
        font-size: 0.8rem;
    }

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

    .motivation-points {
        grid-template-columns: 1fr;
    }

    .featured-project {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

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

    .contribution-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-menu {
        gap: 0.5rem;
        font-size: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-logo {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }
}