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


body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    position: relative;
}

header {
    background-color: #333;
    padding: 1rem;
    width: 100vw;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 100;
}

main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    width: 100vw;
    left: 0;
    bottom: 0;
}

.header {
    text-align: center;
    margin: 3rem auto;
    max-width: 600px;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .social-media__list {
        list-style: none;
        padding: 0;
        display: flex;
        justify-content: center;
        gap: 2rem;
        flex-wrap: wrap;
    }

    .social-media__item {
        margin: 0;
    }

    .social-media__link {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #333;
        padding: 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        min-width: 80px;
    }

    .social-media__link:hover {
        background-color: #f5f5f5;
        transform: translateY(-2px);
    }

    .social-media__label {
        margin-top: 0.5rem;
        font-size: 0.9rem;
        font-weight: 500;
    }

    .icon {
        width: 32px;
        height: 32px;
        display: inline-block;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    /*!* Social Media Icons *!*/

    .icon-linkedin {
        background-image: url("../assets/icons/linkedin.svg");
    }

    .icon-github {
        background-image: url("../assets/icons/github.svg");
    }

    .icon-twitter {
        background-image: url("../assets/icons/twitter.svg");
    }


.feature-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-section h3 {
    margin-top: 0;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.auth-feature {
    border-left: 4px solid #8e24aa;
}

.content-feature {
    border-left: 4px solid #1976d2;
}

.admin-feature {
    border-left: 4px solid #388e3c;
}

.analytics-feature {
    border-left: 4px solid #f57c00;
}

.metric {
    text-align: center;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    min-width: 120px;
}

.metric-value {
    font-size: 2em;
    font-weight: bold;
    color: #8e24aa;
}

.metric-label {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.content-types {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    border: 1px solid #8e24aa;
}

.role-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-top: 4px solid #8e24aa;
}

.role-card h4 {
    margin: 0 0 10px 0;
    color: #8e24aa;
}

.role-hierarchy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.tech-category {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rails-backend {
    border-left: 4px solid #cc0000;
}

.frontend-tech {
    border-left: 4px solid #1976d2;
}

.security-tech {
    border-left: 4px solid #388e3c;
}

.deployment-tech {
    border-left: 4px solid #f57c00;
}


.metrics {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.metric {
    text-align: center;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    min-width: 120px;
}

.metric-value {
    font-size: 2em;
    font-weight: bold;
    color: #388e3c;
}

.metric-label {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* Portfolio index page specific styles */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
    width: 100%;
}

.project-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #388e3c;
    transition: transform 0.3s ease;
}

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

.project-card h2 {
    margin-top: 0;
    color: #333;
}

.project-card p {
    color: #666;
    margin: 10px 0;
}

.project-card a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #388e3c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.project-card a:hover {
    background-color: #2e7d32;
}

.implementation-details {
    background: linear-gradient(135deg, #e3f2fd 0%, #e8f5e9 100%);
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    border: 1px solid #ddd;
}

.implementation-highlights {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    main {
        padding: 10px;
    }

    .header h1 {
        font-size: 2em;
    }

    .tech-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card {
        padding: 15px;
    }

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

.svg-container {
    width: 100%;
    max-width: 1000px;
    height: 600px;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 auto;
    -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
}

.svg-container svg {
    display: block;
    min-width: 1000px; /* Ensures the SVG maintains its minimum width */
}
