/* --- Variables --- */
/* --- Section Layout --- */
.sub-hero-section {
    max-width: 1440px;
    margin: 0 auto;
    padding-top: 10px;
}

.sub-hero-section .container {
    width: 100%;
    margin-left: 2rem;
}

.sub-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Side-by-side layout */
    gap: 60px;
    align-items: center;
}

/* --- Left Side: Text --- */
.sub-hero-text h2 {
    font-size: var(--h1);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 25px;
    color: var(--primary);

}

 .highlight {
        background-color:var(--accent);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;

}

.sub-hero-text p {
    font-size: var(--p0);
    color:#1F2937CC;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 720px; /* Prevents text from stretching too wide */
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    text-decoration: none;
    padding: 16px 30px;
    border-radius: 16px;
    font-weight: 400;
    font-size:var(--p2);
    transition: transform 0.2s ease;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-red {
    background-color: var(--accent);
    color: var(--white);
}
.btn-white {
    background-color: var(--white);
    color: var(--accent);
    border: 1px solid var(--accent);
   box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.1); 
}

/* --- Right Side: Image --- */
.sub-hero-image  {
      display: flex;
        justify-content: right;
        margin-right: 4rem;
}

.sub-hero-image img {
    height: auto;
    /* Optional: Adds a subtle glow to the image if it's a transparent PNG */
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.1)); 
}
.skills-hero-image img {
    width: clamp(450px, 40vw, 500px);
}
.skills-hero-image{
    margin-left: 2rem;
}

/* Optional Floating Animation */

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
    .sub-hero-section .container{
        margin: 0;
        padding-top: 4rem;
    }
    .sub-hero-grid {
        display: flex; /* Stack vertically */
        text-align: center;
        flex-direction: column-reverse;

        gap: 20px;
        padding:20px 0;
    }
    
    
    .sub-hero-text p {
        margin:0 10px; /* Center paragraph */
        text-align: justify;
        padding-top: 10px;
        font-size: var(--p1);
    }

    .action-buttons {
        justify-content: center;
        margin-top: 1rem;
    }

    .btn{
        padding: 10px;
    }
    .sub-hero-text h2 {
        font-size:var(--h3) ;
        text-align: justify;
        word-spacing: -2px;
        margin:0 10px;
    }
    .sub-hero-image{
        justify-content: center;
        margin: 0;
    }
    
    .sub-hero-image img {
        width: clamp(200px, 96vw, 390px);
        height: auto; /* maintain aspect ratio */
    }
}