/* ── Hero Section ── */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 80px 12% 0;
    min-height: 100vh;
    overflow: hidden;
}

.hero-content {
    padding-bottom: 0;
    position: relative;
}

.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 0;
    margin-top: 0;
    padding-right: 50px;
    animation: slideInRight 0.8s ease forwards;
    overflow: visible;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    animation: slideInLeft 0.8s ease forwards;
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

body.theme-light .hero-content h1 {
    background: linear-gradient(90deg, #1a202c, #2563eb, #60a5fa, #1a202c);
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 5s linear infinite;
}

.hero-content h2 {
    font-size: 1.5rem;
    color: var(--hero-h2-color);
    margin-bottom: 1.5rem;
    animation: slideInLeft 0.8s ease 0.1s forwards;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.hero-content h2 span { color: var(--accent); font-weight: 600; }

.typed-subtitle { color: var(--accent); font-weight: 600; }

.hero-content p {
    font-size: 1.0rem;
    color: var(--hero-p-color);
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: slideInLeft 0.8s ease 0.2s forwards;
}

/* ── Buttons ── */
.btn-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    animation: slideInLeft 0.8s ease 0.3s forwards;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn i { margin-right: 0.4rem; }

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-color);
}

.btn-primary:hover {
    background: var(--accent);
    box-shadow: 0 0 20px var(--profile-shadow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--btn-secondary-color);
    border: 2px solid var(--btn-secondary-border);
}

.btn-secondary:hover {
    background: var(--social-bg);
    color: var(--btn-secondary-color);
    box-shadow: 0 0 15px var(--social-hover-shadow);
    transform: translateY(-2px);
}

/* ── Social links ── */
.social-links {
    display: flex;
    gap: 1rem;
    animation: slideInLeft 0.8s ease 0.4s forwards;
}

.social-links a {
    width: 45px;
    height: 45px;
    border: 2px solid var(--social-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--social-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    background: var(--social-bg);
}

.social-links a:hover {
    background: var(--social-hover-bg);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--social-hover-shadow);
}

/* ── Profile circle ── */
.profile-circle {
    position: relative;
    width: 520px;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-circle img {
    width: 460px;
    height: 460px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--profile-border);
    box-shadow: 0 0 30px var(--profile-shadow), inset 0 0 20px var(--profile-ring1-fade);
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-circle img:hover {
    transform: scale(1.06);
    box-shadow: 0 0 50px var(--profile-shadow);
}

/* Outer slow ring */
.profile-circle::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 580px; height: 580px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--profile-ring1);
    border-right-color: var(--profile-ring1);
    border-bottom-color: var(--profile-ring1-fade);
    border-left-color: var(--profile-ring1-fade);
    animation: rotateCW 8s linear infinite;
    box-shadow: 0 0 12px var(--profile-ring1-fade);
}

/* Inner faster ring */
.profile-circle::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 620px; height: 620px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--profile-ring2);
    border-left-color: var(--profile-ring2);
    border-bottom-color: var(--profile-ring2-fade);
    border-right-color: var(--profile-ring2-fade);
    animation: rotateCCW 12s linear infinite;
}

/* ── Keyframes ── */
@keyframes rotateCW {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotateCCW {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}