/* ==========================================================================
   ENGINEERING PORTFOLIO - LIQUID GLASS (iOS 18+ STYLE)
   ========================================================================== */

/* --- 1. GLOBAL RESET & BASE --- */
html {
    scroll-behavior: smooth;
}

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

body {
    /* Apple Silver base with Liquid Aurora gradients for the glass to blur */
    background-color: #f5f5f7; 
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 102, 204, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(129, 140, 248, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- 2. HERO HEADER --- */
header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 5rem;
    text-align: center;
}

header h1 {
    font-size: 2.7rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1d1d1f 0%, #434353 100%);
    -webkit-background-clip: text;
    background-clip: text; 
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 1.25rem;
    color: #515154;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

header a {
    display: inline-block; 
    margin-top: 3rem; 
    background: #0066cc; 
    color: #ffffff; 
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 1.2rem 2.8rem; 
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.3); 
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

header a:hover {
    background: #005bb5; 
    transform: translateY(-3px); 
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.4); 
}

/* --- 3. MAIN LAYOUT --- */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

h3 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #86868b;
    text-align: center;
    margin-bottom: 4rem;
}

section {
    margin-bottom: 8rem;
}

#about-summary p {
    font-size: 1.25rem;
    color: #515154;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.7;
}

/* --- 4. LIQUID GLASS CARDS --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.project-card {
    /* The Glass Core */
    background: rgba(255, 255, 255, 0.5); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    
    /* The Inner Refraction Border */
    border: 1px solid rgba(255, 255, 255, 0.8);
    
    border-radius: 28px;
    padding: 2.5rem;
    display: block;
    position: relative;
    padding-bottom: 6rem;
    
    /* Diffused iOS Shadow */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04);
    
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.01);
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.project-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}

.project-card p {
    font-size: 1.05rem;
    color: #515154;
    line-height: 1.6;
}

/* --- 5. GLASS TAGS --- */
.tech-tag {
    display: inline-block;
    background: rgba(0, 0, 0, 0.04);
    color: #1d1d1f;
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* --- 6. ACTION LINKS --- */
.project-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
}

.project-link:hover {
    opacity: 0.7;
}

/* --- 7. SKILLS MATRIX (Glass Variety) --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 2.5rem 2rem;
    border-radius: 28px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.skill-category h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.skill-category p {
    color: #86868b;
    font-size: 1rem;
}

/* --- 8. SMOOTH REVEAL ANIMATION --- */
@keyframes smoothReveal {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

header, section {
    animation: smoothReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

header { animation-delay: 0.1s; }
#about-summary { animation-delay: 0.2s; }
#engineering-projects { animation-delay: 0.3s; }
#web-projects { animation-delay: 0.4s; }
#technical-skills { animation-delay: 0.5s; }

/* --- 10. LIQUID CONTACT & FOOTER --- */
.contact-section {
    text-align: center;
    padding: 6rem 2rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-bottom: 5rem;
}

.contact-section h3 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
}

.contact-section p {
    color: #86868b;
    margin-bottom: 3.5rem;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.contact-card-link {
    background: rgba(0, 0, 0, 0.03);
    text-decoration: none;
    padding: 1.2rem 2rem;
    border-radius: 18px;
    width: 100%;
    max-width: 450px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.contact-card-link:hover {
    background: #ffffff;
    border-color: #0066cc;
    transform: scale(1.02);
}

.contact-card-link .label {
    color: #86868b;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-card-link .value {
    color: #0066cc;
    font-weight: 600;
}

.social-row {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
}

.social-row a {
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

.social-row a:hover {
    color: #0066cc;
}

.site-footer {
    padding-bottom: 4rem;
    text-align: center;
}

.site-footer p {
    color: #515154; 
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    font-weight: 500;
}

/* --- 11. MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    header { padding: 5rem 1.5rem 3rem; }
    header h1 { font-size: 2.2rem; }
    h3 { font-size: 2rem; }
    main { padding: 0 1.5rem 4rem; }
    .project-card { padding: 2rem 2rem 5rem; }
    .project-link { left: 2rem; bottom: 2rem; }
    .contact-section h3 { font-size: 2rem; }
}