/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, border 0.3s;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-main);
    transition: background 0.3s, color 0.3s;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border-bottom: 1.5px solid var(--border);
}

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #e5e7ef;
}

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

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e2026 0%, #23272f 100%);
    color: var(--text-main);
    padding-top: 80px;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

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

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

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

.btn-secondary:hover {
    background: #23272f;
    color: #fff;
    border-color: #fff;
}

.btn-cv {
    background: #14b8a6;
    color: #fff;
    border: none;
}

.btn-cv:hover {
    background: #0d9488;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-main);
    position: relative;
}

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

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

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

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
}

.stat:hover {
    transform: translateY(-5px);
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-secondary);
    font-weight: 500;
}

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

.skill-category {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    text-align: center;
}

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

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.skill-item:hover {
    background: var(--bg-section);
    transform: scale(1.05);
}

.skill-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.skill-item span {
    font-weight: 500;
    color: var(--text-secondary);
}

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

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

.project-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

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

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #1e2026 0%, #23272f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    color: var(--text-main);
    font-size: 3rem;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.project-tech span {
    background: #23272f;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--primary-dark);
}

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

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

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 50%;
    padding-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    margin-right: 0;
    padding-left: 2rem;
}

.timeline-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid var(--text-main);
    box-shadow: 0 0 0 4px var(--text-secondary);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -60px;
}

.timeline-header {
    margin-bottom: 1rem;
}

.timeline-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.company {
    color: var(--primary);
    font-weight: 500;
    margin-right: 1rem;
}

.duration {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    color: #fff;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #14b8a6;
    font-weight: bold;
}

/* Education Section */
.education {
    background: var(--bg-section);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.education-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    border: 1px solid var(--border);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.education-icon {
    background: linear-gradient(135deg, #23283a 0%, #2d3146 100%);
    color: var(--text-main);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.education-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.education-content .institution {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.education-content .year {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.education-content .score {
    color: var(--success);
    font-weight: 500;
    font-size: 0.875rem;
}

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

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    gap: 3rem;
}

.contact-info {
    text-align: center;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.contact-item i {
    color: var(--primary);
    margin-right: 1rem;
    width: 20px;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--text-main);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.cv-download {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--text-secondary);
}

.cv-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--success);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
}

.cv-link:hover {
    background: var(--success);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.contact-actions {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    padding: 15px 30px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.contact-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Footer */
.footer {
    background: var(--bg-card);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-card);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

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

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

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .profile-img {
        width: 250px;
        height: 250px;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .about-stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }

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

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

    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        padding-left: 2rem;
        padding-right: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -35px;
        right: auto;
    }

    .contact-content {
        gap: 2rem;
    }

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

    .skill-items {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .profile-img {
        width: 200px;
        height: 200px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

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

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat {
        padding: 1.5rem;
    }

    .skill-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-tech {
        justify-content: center;
    }

    .project-links {
        justify-content: center;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* --- Contact Section Redesign --- */
.contact-cards-wrapper {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.contact-card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 2rem 1.5rem;
    min-width: 240px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid var(--border);
}
.contact-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.28);
    transform: translateY(-4px) scale(1.03);
}
.contact-card-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.contact-card-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}
.contact-card-content p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}
.contact-card-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s;
}
.contact-card-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
.contact-card-status {
    color: var(--success);
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.contact-extras {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2.5rem;
}
.contact-social {
    text-align: center;
}
.contact-social h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}
.contact-social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.social-btn {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1.5px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    margin: 0 0.25rem;
}
.social-btn:hover {
    background: var(--primary-dark);
    color: #fff !important;
    transform: translateY(-3px) scale(1.12);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.contact-cv {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.cv-btn {
    margin-top: 1rem;
    background: #14b8a6;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, transform 0.2s;
}
.cv-btn:hover {
    background: #0d9488;
    transform: translateY(-2px) scale(1.04);
}

@media (max-width: 900px) {
    .contact-cards-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .contact-extras {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
}

/* --- Dark Theme Base Colors --- */
:root {
  --bg-main: #16181d;
  --bg-card: #1e2026;
  --bg-section: #191b20;
  --text-main: #e5e7ef;
  --text-secondary: #b0b4c1;
  --primary: #23272f;
  --primary-dark: #111216;
  --accent: #343843;
  --success: #10b981;
  --success-dark: #059669;
  --border: #23242a;
  --shadow: 0 4px 24px rgba(0,0,0,0.18);
}

/* Scrollbar */
::-webkit-scrollbar {
  background: var(--bg-card);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 8px;
}

/* Misc */
.about {
  background: var(--bg-section);
}
.projects {
  background: var(--bg-section);
}
.skills {
  background: var(--bg-section);
}
.education {
  background: var(--bg-section);
}
.contact {
  background: var(--bg-section);
}

/* Ensure all text is readable */
.stat p, .skill-item span, .project-content p, .timeline-content p, .timeline-content li, .education-content .institution, .education-content .year, .education-content .score {
  color: var(--text-secondary);
}

/* Smooth transitions for theme */
* {
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, border 0.3s;
}

input, textarea {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1.5px solid var(--border);
}

input:focus, textarea:focus {
  border-color: var(--primary);
}

/* Icon Color Consistency */
.skill-item i,
.project-placeholder i,
.project-card i,
.timeline-header i,
.education-icon i,
.contact-card-icon i,
.social-btn i {
    color: var(--primary) !important;
}

.nav-logo a, .nav-link:hover, .nav-link.active, .project-link, .project-link:hover, .contact-card-link, .contact-card-link:hover, .company, .contact-card-icon, .skill-item i, .project-placeholder i, .project-card i, .timeline-header i, .education-icon i, .contact-card-icon i, .social-btn i {
    color: #fff !important;
}

.social-btn, .social-btn:hover {
    background: var(--primary);
    color: #fff !important;
    border: 1.5px solid var(--border);
}

.social-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.nav-link.active, .nav-link:hover {
    color: #fff !important;
    font-weight: 700;
    background: rgba(20, 184, 166, 0.08);
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
}
.nav-link.active::after, .nav-link:hover::after {
    background-color: #14b8a6 !important;
    width: 100%;
} 