/* ============================================
   SECTIONS.CSS — Hero, About, Blog, Contact
   (Footer styling lives in footer.css. "Show more" / project-card
   reveal styling lives in projects.css. See notes at the bottom.)
   ============================================ */

/* ---- Hero ---- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79,70,229,0.08) 0%, transparent 70%);
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.greeting {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.title {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.cursor {
    display: inline-block;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icons a {
    font-size: 1.5rem;
    color: var(--text-light);
    transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-4px);
}

/* ---- About ---- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item { display: flex; flex-direction: column; }

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.skills-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.skill-bar { margin-bottom: 1.5rem; }

.skill-bar .info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill-bar .bar {
    height: 10px;
    background-color: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.skill-bar .bar span {
    display: block;
    height: 100%;
    border-radius: 5px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s ease-out;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.skill-bar .bar span.active { transform: scaleX(1); }

/* Skill colors */
.skill-bar .bar span.flutter  { background: linear-gradient(to right, #02569B, #0175C2); }
.skill-bar .bar span.android  { background: linear-gradient(to right, #3DDC84, #42FA92); }
.skill-bar .bar span.dart     { background: linear-gradient(to right, #0175C2, #40C4FF); }
.skill-bar .bar span.kotlin   { background: linear-gradient(to right, #7F52FF, #C711E1); }
.skill-bar .bar span.html     { background: linear-gradient(to right, #E34F26, #F06529); }
.skill-bar .bar span.css      { background: linear-gradient(to right, #264DE4, #2965F1); }
.skill-bar .bar span.javascript { background: linear-gradient(to right, #F7DF1E, #E5C300); }
.skill-bar .bar span.react    { background: linear-gradient(to right, #61DAFB, #00B7E6); }
.skill-bar .bar span.node     { background: linear-gradient(to right, #339933, #6B8E23); }

/* ---- Blog ---- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.blog-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content { padding: 1.5rem; }

.blog-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.3s;
}

.read-more:hover { gap: 0.8rem; }

/* ---- Contact ---- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background-color: rgba(79,70,229,0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.contact-item p  { color: var(--text-light); }

.contact-form {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.form-group { margin-bottom: 1.5rem; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

/* ============================================
   REMOVED FROM THIS FILE (now live elsewhere):

   - Old "footer", ".footer-content", ".footer-socials" rules
     -> superseded entirely by footer.css / footer.html. The bare
        `footer { text-align: center; ... }` element selector here
        was the exact cause of the misaligned footer, since it has
        higher priority than browser defaults and nothing in the
        old footer.css overrode text-align explicitly. Leaving a
        bare `footer` selector in a shared stylesheet is risky for
        this reason — it silently styles ANY <footer> element on
        ANY page, including ones with their own intentional styling.

   - ".show-more-container { text-align: center; margin-top: 4rem; }"
     -> superseded by the same selector in projects.css (flexbox
        centering, 3.5rem spacing) which now owns this component.

   - ".hidden-project { display: none !important; }"
     -> dead code. Nothing applies this class anymore; the "View
        All Projects" reveal now uses ".extra-project" / ".show"
        (see projects.css + projects-home.js).
   ============================================ */