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

:root {
    --primary-color: #000;
    --secondary-color: #666;
    --accent-color: #0066ff;
    --bg-color: #fff;
    --text-color: #1a1a1a;
    --text-light: #666;
    --border-color: #e0e0e0;
    --hover-color: #f5f5f5;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #000 !important;
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 1;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    height: 92px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 70%;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.logo-link:hover .logo-photo {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.logo-name {
    font-size: 1.25rem;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-item {
    display: block;
}

.nav-link {
    display: block;
    color: #fff;
    line-height: 92px;
    padding: 0 1em;
    text-decoration: none;
    text-transform: lowercase;
    font-weight: 400;
    font-size: 0.875rem;
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.nav-item:hover .nav-link,
.nav-item.current_page_item .nav-link,
.nav-item.current_page_parent .nav-link,
.nav-link.active {
    color: #757575;
}


.lang-switcher {
    margin-left: 1rem;
    height: 92px;
    display: flex;
    align-items: center;
}

.language-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 400;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    text-transform: lowercase;
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.lang-btn.active {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Sections */
.section {
    padding: 12rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Home Section */
.home-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    padding-top: 8rem;
}

.home-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.home-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.greeting {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-light);
}

.name {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.home-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.home-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
}

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

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.btn-secondary:hover {
    background-color: var(--hover-color);
    border-color: var(--text-color);
}

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

.social-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    text-transform: lowercase;
}

.social-link:hover {
    color: var(--accent-color);
}

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

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.col-5 {
    flex: 0 0 41.66667%;
    max-width: 41.66667%;
    padding: 0 1rem;
}

.col-7 {
    flex: 0 0 58.33333%;
    max-width: 58.33333%;
    padding: 0 1rem;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 1rem;
}

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

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* About Main Section */
.about-main {
    margin-bottom: 4rem;
}

.about-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.text-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.intro {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.major {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    max-width: 100%;
    object-fit: cover;
}

#text-main {
    visibility: hidden;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#text-main.animated {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

#img-main {
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#img-main.animated {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

#img-main img.major {
    width: 617px;
    height: 482px;
    display: block;
    object-fit: cover;
}

.preload {
    opacity: 1;
    transition: opacity 0.3s;
}

/* Snaps Section */
.snaps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.snaps.animated {
    visibility: visible;
    opacity: 1;
}

.snap-item {
    display: block;
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.snap-item.animated {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.snap-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.snap-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* About Parts Section - Adham Dannaway Style */
.dark {
    background-color: #f8f9fa;
    padding: 4rem 0;
    margin: 4rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.dark .row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.pie-chart {
    position: relative;
    min-height: 600px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 0;
}

.web-project,
.coder {
    position: relative;
    z-index: 2;
    flex: 0 0 calc(50% - 200px);
    min-width: 200px;
    max-width: 300px;
    margin-top: 0;
    align-self: flex-start;
}

    .web-project {
        margin-left: 40px;
    }

    @media (max-width: 768px) {
        .web-project {
            margin-left: 0;
        }
    }

.web-project h2,
.coder h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

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

.ul li {
    padding: 0.5rem 0;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

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

.ul li:hover {
    color: var(--text-color);
}

#img-pie {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: 800px;
    max-height: 800px;
    z-index: 1;
    object-fit: contain;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transform: translate(-50%, calc(-50% + 30px));
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

#img-pie.animated {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%);
}

.pie-chart-svg-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    visibility: visible;
    opacity: 1;
}

.pie-chart-wrapper {
    position: relative;
    width: 500px;
    height: 500px;
}

.pie-chart-wrapper svg.pie-chart {
    width: 100%;
    height: 100%;
}

.pie-segment {
    transition: all 0.3s ease;
}

.about-photo-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf0 100%);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.photo-fun {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.photo-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.about-tools-section,
.about-marketing-section {
    margin-bottom: 4rem;
}

.about-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.tools-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-category {
    padding: 1rem;
    background-color: var(--hover-color);
    border-radius: 8px;
}

.tool-category-text {
    color: var(--text-light);
    margin: 0;
}

.marketing-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.marketing-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.marketing-tools {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
}

.about-random-facts {
    margin-bottom: 4rem;
}

.ten-things {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ten-things h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.ten-things .ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ten-things .ul li {
    padding: 0.5rem 0;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.ten-things .ul li:last-child {
    border-bottom: none;
}

.ten-things .ul li:hover {
    color: var(--text-color);
}

.ten-things .ul li a {
    color: var(--text-color);
    text-decoration: underline;
    transition: var(--transition);
}

.ten-things .ul li a:hover {
    color: var(--accent-color);
}

.facts-visual-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf0 100%);
    border-radius: 8px;
    border: 2px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.row.alt {
    flex-direction: row-reverse;
}

#img-random-facts {
    visibility: hidden;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#img-random-facts.animated {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

#img-random-facts img.major {
    width: 590px;
    height: 470px;
    object-fit: cover;
}

.placeholder-icon {
    font-size: 3rem;
}

.placeholder-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

.random-facts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fact-item-line {
    padding: 1rem 1.5rem;
    background-color: var(--hover-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
    line-height: 1.5;
}

.fact-item-line:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-left-color: var(--accent-color);
    transform: translateX(5px);
}

/* Bar Chart Section - Adham Dannaway Style */
.nopad-b {
    padding-bottom: 0;
}

.align-r {
    text-align: right;
}

.bar-chart {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    height: 300px;
    position: relative;
}

.bar-chart li {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.bar-chart li.axis {
    flex: 0 0 60px;
    justify-content: space-between;
    align-items: flex-start;
    padding-right: 1rem;
}

.bar-chart li.axis .label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bar-chart li:not(.axis) {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out, height 0.6s ease-out;
    border-radius: 4px 4px 0 0;
    min-width: 60px;
    position: relative;
}

.bar-chart li.aqua {
    background: linear-gradient(180deg, #17a2b8 0%, #138496 100%);
}

.bar-chart li.pink {
    background: linear-gradient(180deg, #ff6b9d 0%, #e55a8a 100%);
}

.bar-chart li.yellow {
    background: linear-gradient(180deg, #ffc107 0%, #e0a800 100%);
}

.bar-chart li.brown {
    background: linear-gradient(180deg, #d4a574 0%, #b8935f 100%);
}

.bar-chart li.red {
    background: linear-gradient(180deg, #dc3545 0%, #c82333 100%);
}

.bar-chart li.p-95 {
    height: 95% !important;
}

.bar-chart li.p-90 {
    height: 90% !important;
}

.bar-chart li.p-75 {
    height: 75% !important;
}

.bar-chart li.p-40 {
    height: 40% !important;
}

.bar-chart li .percent {
    position: absolute;
    top: -2.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.bar-chart li .percent span {
    font-size: 1rem;
}

.bar-chart li .skill {
    position: absolute;
    bottom: -2rem;
    font-size: 0.85rem;
    color: var(--text-color);
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
}

/* Projects Section */
.projects-section {
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.project-card-link:hover .project-card {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.project-image {
    width: 100%;
    height: 250px;
    background-color: var(--hover-color);
    overflow: hidden;
    position: relative;
    display: block;
}

.project-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.project-card-link:hover .project-card-image {
    transform: scale(1.05);
}

.project-card-link:hover .project-card-image-phone {
    transform: scale(1.02);
}

/* Specific styles for phone images to show full device */
.project-image-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    overflow: hidden;
}

.project-card-image-phone {
    width: 100%;
    height: 250px;
    object-fit: contain;
    object-position: center;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    opacity: 0.8;
}

.project-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

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

.project-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.project-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: var(--transition);
}

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

.project-link:hover::after {
    transform: translateX(4px);
}

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

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-color);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-text p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-social .social-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social .social-link:hover {
    color: var(--bg-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive Design */
@media only screen and (min-width: 830px) {
    .nav-item:hover .nav-link,
    .nav-item.current_page_item .nav-link,
    .nav-item.current_page_parent .nav-link {
        color: #757575;
    }
    
    .nav-link {
        display: block;
        color: #fff;
        line-height: 92px;
        padding: 0 1em;
        text-decoration: none;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
        min-height: auto;
    }
    
    .nav-logo {
        height: auto;
    }
    
    .lang-switcher {
        height: auto;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #000;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        gap: 0;
    }

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

    .nav-item {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link {
        line-height: 6.4rem;
        padding: 0 1em;
    }
    
    .logo-name {
        font-size: 1.1rem;
    }
    
    .logo-photo {
        width: 60px;
        height: 60px;
    }

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

    .lang-switcher {
        margin-left: 0;
        margin-top: 1rem;
        justify-content: center;
    }

    .language-selector {
        justify-content: center;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .name {
        font-size: 2.5rem;
    }

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

    .col-5,
    .col-7 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }

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

    .intro {
        font-size: 1.25rem;
    }

    .description {
        font-size: 1rem;
    }

    #img-main img.major {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .snaps {
        gap: 0.5rem;
        justify-content: center;
    }

    .snap-item {
        width: 100px;
        height: 100px;
    }

    .pie-chart {
        flex-direction: column;
        align-items: center;
        min-height: auto;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .web-project,
    .coder {
        flex: 0 0 100%;
        max-width: 100%;
        min-width: 100%;
        margin-left: 0;
        padding: 1.5rem;
    }

    .web-project h2,
    .coder h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .web-project .ul,
    .coder .ul {
        padding-left: 0;
    }

    .web-project .ul li,
    .coder .ul li {
        font-size: 0.95rem;
        padding: 0.5rem 0;
    }

    #img-pie,
    .pie-chart-svg-fallback {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 2rem auto;
        order: 3;
    }

    .pie-chart-wrapper {
        margin: 0 auto;
    }

    .pie-chart-wrapper {
        width: 250px;
        height: 250px;
    }

    .pie-chart-center {
        width: 150px;
        height: 150px;
    }

    .pie-chart-text {
        font-size: 0.8rem;
    }

    .row.alt {
        flex-direction: column;
    }

    .ten-things {
        margin-bottom: 2rem;
    }

    #img-random-facts {
        margin-bottom: 2rem;
    }

    #img-random-facts img.major {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .bar-chart {
        flex-direction: column;
        height: auto;
        gap: 1.5rem;
        padding: 1rem 0;
    }

    .bar-chart li.axis {
        flex: 0 0 100%;
        flex-direction: row;
        justify-content: space-around;
        padding-right: 0;
        margin-bottom: 1rem;
        order: -1;
    }

    .bar-chart li:not(.axis) {
        flex: 0 0 100%;
        min-width: 100%;
        height: 60px !important;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        border-radius: 4px;
    }

    .bar-chart li .percent {
        position: static;
        top: auto;
        margin-right: 1rem;
    }

    .bar-chart li .skill {
        position: static;
        bottom: auto;
        margin-left: 1rem;
    }

    .skills-chart-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .skills-chart-y-axis {
        flex-direction: row;
        height: auto;
        justify-content: space-between;
        width: 100%;
        padding-right: 0;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .skills-chart-bars {
        height: 250px;
        gap: 1rem;
    }

    .skill-bar {
        height: 250px;
    }

    .skill-percentage {
        font-size: 1.2rem;
    }

    .skill-name {
        font-size: 0.75rem;
    }

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

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

    .home-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .home-section {
        padding-top: 6rem;
    }

    .social-links {
        gap: 1.5rem;
    }

    .dark {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        padding: 3rem 1rem;
    }

    .dark .row {
        padding: 0 1rem;
    }

    .bar-chart {
        flex-direction: column;
        height: auto;
        gap: 1.5rem;
        padding: 1rem 0;
    }

    .bar-chart li.axis {
        flex: 0 0 100%;
        flex-direction: row;
        justify-content: space-around;
        padding-right: 0;
        margin-bottom: 1rem;
        order: -1;
        height: auto;
    }

    .bar-chart li:not(.axis) {
        flex: 0 0 100%;
        min-width: 100%;
        height: 60px !important;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        border-radius: 4px;
        width: 100%;
    }

    .bar-chart li .percent {
        position: static;
        top: auto;
        margin-right: 1rem;
        font-size: 1.2rem;
        white-space: nowrap;
    }

    .bar-chart li .skill {
        position: static;
        bottom: auto;
        margin-left: 1rem;
        font-size: 0.85rem;
        text-align: left;
        flex: 1;
    }

    .row.alt {
        flex-direction: column;
    }

    .ten-things {
        margin-bottom: 2rem;
    }

    #img-random-facts {
        margin-bottom: 2rem;
    }

    #img-random-facts img.major {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .about-main .row {
        flex-direction: column;
    }

    .about-main .col-5 {
        order: 2;
    }

    .about-main .col-7 {
        order: 1;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .nav-logo a {
        font-size: 1.1rem;
    }

    .name {
        font-size: 2rem;
    }

    .greeting {
        font-size: 1.2rem;
    }

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

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

    .section-subtitle {
        font-size: 1rem;
    }

    .project-card {
        border-radius: 6px;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .project-description {
        font-size: 0.95rem;
    }

    .about-subtitle {
        font-size: 1.3rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .contact-form {
        gap: 1.25rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .lang-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }
}

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

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

/* Smooth scroll indicator */
html {
    scroll-padding-top: 80px;
}

