/* ===========================================
   LAYOUT - Complete Styles
=========================================== */

.container{

    width: min(1200px, 90%);
    margin: auto;

}

.section{

    padding: var(--space-xl) 0;

}

/* ============================================
   SECTION HEADER
=========================================== */

.section-header{

    text-align: center;
    margin-bottom: 3rem;

}

.section-header h2{

    margin-bottom: 0.5rem;

}

.section-header .section-subtitle{

    max-width: 600px;
    margin: 0 auto;

}

/* ============================================
   SECTION CTA (View All Button)
=========================================== */

.section-cta{

    text-align: center;
    margin-top: 3rem;

}

/* ============================================
   PORTFOLIO GRID
=========================================== */

.portfolio-grid{

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;

}

/* ============================================
   ABOUT SECTION
=========================================== */

.about-grid{

    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;

}

.about-content{

    max-width: 800px;
    margin: 0 auto;
    text-align: center;

}

.about-content p{

    margin-bottom: 2rem;

}

.about-expertise{

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;

}

.expertise-card{

    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: left;

}

.expertise-card:hover{

    transform: translateY(-4px);
    box-shadow: var(--shadow-md);

}

.expertise-card h3{

    margin-bottom: 0.5rem;
    font-size: 1.2rem;

}

.expertise-card p{

    font-size: 0.95rem;
    color: var(--text-light);

}

/* ============================================
   TECHNOLOGY STACK - WIDER CARDS
=========================================== */

.technologies{

    background: var(--background);

}

.tech-grid{

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 1rem;

}

.tech-card{

    background: var(--surface);
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    min-height: 220px;
    width: 100%;

}

.tech-card:hover{

    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);

}

.tech-header{

    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;

}

.tech-icon{

    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;

}

.tech-header h3{

    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 0;
    white-space: nowrap;

}

.tech-list{

    display: flex;
    flex-direction: column;
    gap: 8px;

}

.tech-list li{

    font-size: 0.95rem;
    color: var(--text);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
    transition: var(--transition);
    line-height: 1.4;
    white-space: nowrap;

}

.tech-list li::before{

    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.8rem;

}

.tech-list li:hover{

    color: var(--primary);
    padding-left: 26px;

}

/* Bridge Statement */
.tech-bridge{

    text-align: center;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);

}

.tech-bridge p{

    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.5px;

}

.tech-bridge p::before,
.tech-bridge p::after{

    content: ' — ';
    color: var(--primary);
    opacity: 0.3;

}

/* ============================================
   STATISTICS - My Impact in Numbers
=========================================== */

.statistics{

    background: linear-gradient(180deg, var(--background) 0%, #F1F5F9 100%);

}

/* Top Level Stats Cards */
.stats-row{

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;

}

.stat-card{

    background: var(--surface);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);

}

.stat-card:hover{

    transform: translateY(-4px);
    box-shadow: var(--shadow-md);

}

.stat-card-primary{

    border-top: 4px solid var(--primary);

}

.stat-number-large{

    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.1;

}

.stat-card .stat-label{

    display: block;
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 0.5rem;

}

/* Project Breakdown - Unified Card */
.stats-breakdown{

    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 2.5rem;
    transition: var(--transition);

}

.stats-breakdown:hover{

    box-shadow: var(--shadow-md);

}

.stats-breakdown-header{

    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--border);

}

.stats-breakdown-icon{

    font-size: 2rem;

}

.stats-breakdown-header h3{

    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;

}

/* Breakdown Grid */
.stats-breakdown-grid{

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;

}

.stat-item{

    background: var(--background);
    padding: 1.25rem 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;

}

.stat-item:hover{

    background: rgba(37, 99, 235, 0.05);
    border-color: var(--primary);
    transform: translateY(-2px);

}

.stat-item .stat-number{

    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);

}

.stat-item .stat-label-small{

    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
    line-height: 1.3;

}

/* Highlighted items (GIS & Other) */
.stat-item-highlight{

    background: rgba(37, 99, 235, 0.06);
    border-color: var(--primary);

}

.stat-item-highlight .stat-number{

    color: var(--secondary);

}

/* Grand Total - Split View */
.stats-breakdown-total{

    margin-top: 0.5rem;

}

.grand-total-split{

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #1a2332 100%);
    border-radius: var(--radius-md);
    overflow: hidden;

}

.grand-total-item{

    padding: 2rem 1.5rem;
    text-align: center;
    flex: 1;

}

.grand-total-item:first-child{

    border-radius: var(--radius-md) 0 0 var(--radius-md);

}

.grand-total-item:last-child{

    border-radius: 0 var(--radius-md) var(--radius-md) 0;

}

.grand-total-number{

    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;

}

.grand-total-label{

    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;

}

.grand-total-badge{

    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.3rem 1.2rem;
    background: rgba(37, 99, 235, 0.3);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.1);

}

/* Divider */
.grand-total-divider{

    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    align-self: stretch;
    flex-shrink: 0;

}

/* ============================================
   FOOTER
=========================================== */

.footer{

    background: var(--secondary);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-xl) 0 var(--space-md);
    margin-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);

}

.footer-grid{

    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

}

/* Brand */
.footer-brand h3{

    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;

}

.footer-brand p{

    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;

}

/* Quick Links */
.footer-links h4{

    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;

}

.footer-links ul{

    display: flex;
    flex-direction: column;
    gap: 0.5rem;

}

.footer-links a{

    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    font-size: 0.95rem;

}

.footer-links a:hover{

    color: var(--primary);
    transform: translateX(4px);

}

/* Social Links */
.footer-social h4{

    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;

}

.social-icons{

    display: flex;
    flex-direction: column;
    gap: 0.75rem;

}

.social-link{

    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    padding: 6px 0;

}

.social-link:hover{

    color: var(--primary);
    transform: translateX(4px);

}

.social-link svg{

    width: 22px;
    height: 22px;
    flex-shrink: 0;

}

.social-link span{

    font-size: 0.95rem;

}

/* Footer Bottom */
.footer-bottom{

    padding-top: var(--space-md);
    text-align: center;

}

.footer-bottom p{

    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    margin: 0;

}

/* ============================================
   RESPONSIVE LAYOUT
=========================================== */

/* Technology Stack Responsive */
@media (max-width: 1100px){

    .tech-grid{

        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;

    }

    .tech-card:last-child{

        grid-column: 1 / -1;
        max-width: 33.33%;
        margin: 0 auto;

    }

}

@media (max-width: 992px){

    .tech-grid{

        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;

    }

    .tech-card:last-child{

        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;

    }

    .stats-row{

        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;

    }

    .stat-number-large{

        font-size: 2.8rem;

    }

    .stats-breakdown-grid{

        grid-template-columns: repeat(3, 1fr);

    }

}

/* Tablets */
@media (max-width: 768px){

    .portfolio-grid{

        grid-template-columns: 1fr;

    }

    .about-grid{

        grid-template-columns: 1fr;

    }

    .about-expertise{

        grid-template-columns: 1fr;

    }

    .expertise-card{

        padding: 1.5rem;

    }

    .footer-grid{

        grid-template-columns: 1fr;
        gap: 2rem;

    }

    .footer-brand{

        text-align: center;

    }

    .footer-links{

        text-align: center;

    }

    .footer-links ul{

        align-items: center;

    }

    .footer-social{

        text-align: center;

    }

    .social-icons{

        align-items: center;

    }

    .social-link{

        justify-content: center;

    }

    .tech-grid{

        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;

    }

    .tech-card{

        padding: 1.5rem;
        min-height: auto;

    }

    .tech-card:last-child{

        grid-column: 1 / -1;
        max-width: 100%;

    }

    .tech-header h3{

        font-size: 1rem;

    }

    .tech-list li{

        font-size: 0.9rem;
        white-space: normal;

    }

    .stats-row{

        grid-template-columns: 1fr 1fr;
        gap: 0.875rem;

    }

    .stat-card:last-child{

        grid-column: 1 / -1;

    }

    .stats-breakdown{

        padding: 1.5rem;

    }

    .stats-breakdown-grid{

        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;

    }

    .stats-breakdown-header h3{

        font-size: 1.2rem;

    }

    .stat-item .stat-number{

        font-size: 1.8rem;

    }

    /* Grand Total Split - Mobile */
    .grand-total-split{

        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto 1fr;

    }

    .grand-total-divider{

        width: 100%;
        height: 2px;
        align-self: center;

    }

    .grand-total-item{

        padding: 1.5rem;

    }

    .grand-total-item:first-child{

        border-radius: var(--radius-md) var(--radius-md) 0 0;

    }

    .grand-total-item:last-child{

        border-radius: 0 0 var(--radius-md) var(--radius-md);

    }

    .grand-total-number{

        font-size: 3rem;

    }

    .grand-total-label{

        font-size: 1rem;

    }

}

/* Small Mobile */
@media (max-width: 480px){

    .section{

        padding: var(--space-lg) 0;

    }

    .tech-grid{

        grid-template-columns: 1fr;
        gap: 0.875rem;

    }

    .tech-card{

        padding: 1.25rem;

    }

    .tech-bridge p{

        font-size: 0.95rem;

    }

    .tech-bridge p::before,
    .tech-bridge p::after{

        content: '';

    }

    .stats-row{

        grid-template-columns: 1fr;

    }

    .stat-card:last-child{

        grid-column: 1;

    }

    .stat-number-large{

        font-size: 2.5rem;

    }

    .stats-breakdown{

        padding: 1rem;

    }

    .stats-breakdown-grid{

        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;

    }

    .stat-item{

        padding: 0.875rem 0.5rem;

    }

    .stat-item .stat-number{

        font-size: 1.5rem;

    }

    .stat-item .stat-label-small{

        font-size: 0.75rem;

    }

    .stats-breakdown-header h3{

        font-size: 1rem;

    }

    .grand-total-item{

        padding: 1.25rem;

    }

    .grand-total-number{

        font-size: 2.5rem;

    }

    .grand-total-label{

        font-size: 0.9rem;

    }

    .grand-total-badge{

        font-size: 0.65rem;
        padding: 0.2rem 1rem;

    }

    .footer-bottom p{

        font-size: 0.8rem;

    }

}