/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 4rem 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* ===== LEFT ===== */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--violet-light);
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease 0.1s both;
}

.gradient-text {
    background: var(--gradient-violet);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-roles {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease 0.2s both;
    min-height: 2rem;
}

.role-prefix { color: var(--text-secondary); }

.role-text {
    color: var(--violet-light);
    font-weight: 600;
}

.cursor {
    color: var(--violet-main);
    animation: blink 1s infinite;
}

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

.hero-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 480px;
    animation: fadeInDown 0.8s ease 0.3s both;
}

/* ===== BUTTONS ===== */
.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    animation: fadeInDown 0.8s ease 0.4s both;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-violet);
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--violet-light);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--violet-main);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
}

/* ===== STATS ===== */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    animation: fadeInDown 0.8s ease 0.5s both;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--violet-light);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 35px;
    background: var(--glass-border);
}

/* ===== BLOB PHOTO ===== */
.hero-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease 0.3s both;
}

.hero-img-wrapper {
    position: relative;
    width: 360px;
    height: 360px;
}

.blob-shape {
    width: 100%;
    height: 100%;
    border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%;
    overflow: hidden;
    border: 2px solid rgba(124, 58, 237, 0.3);
    animation: blobMorph 8s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.blob-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.blob-placeholder {
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--violet-light);
}

@keyframes blobMorph {
    0%   { border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%; }
    25%  { border-radius: 50% 50% 34% 66% / 56% 68% 32% 44%; }
    50%  { border-radius: 46% 54% 62% 38% / 40% 56% 44% 60%; }
    75%  { border-radius: 34% 66% 50% 50% / 44% 32% 68% 56%; }
    100% { border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%; }
}

.blob-ring {
    position: absolute;
    inset: -12px;
    border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%;
    border: 1px dashed rgba(124, 58, 237, 0.2);
    animation: blobMorph 8s ease-in-out infinite reverse;
    z-index: 1;
}

.blob-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-violet);
    z-index: 3;
}

.blob-dot-1 {
    width: 14px; height: 14px;
    top: 8%; right: 10%;
    animation: floatDot 4s ease-in-out infinite;
}

.blob-dot-2 {
    width: 10px; height: 10px;
    bottom: 15%; left: 5%;
    animation: floatDot 5s ease-in-out infinite 1s;
}

.blob-dot-3 {
    width: 8px; height: 8px;
    top: 50%; right: -5%;
    animation: floatDot 3.5s ease-in-out infinite 0.5s;
}

@keyframes floatDot {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== FLOATING CARDS ===== */
.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(7, 7, 13, 0.85);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: nowrap;
    animation: floatCard 3s ease-in-out infinite;
    z-index: 4;
}

.float-card i { color: var(--violet-light); }

.float-card-1 { top: 5%; right: -10%; animation-delay: 0s; }
.float-card-2 { bottom: 15%; right: -15%; animation-delay: 1s; }
.float-card-3 { top: 40%; left: -15%; animation-delay: 2s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ===== HOME SECTIONS ===== */
.home-section {
    padding: 5rem 0;
    border-top: 1px solid var(--glass-border);
}

.home-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.home-section-header .section-title {
    margin-bottom: 0;
    text-align: left;
}

.home-section-header .section-tag {
    margin-bottom: 0.5rem;
}

/* ===== FEATURED PROJECTS ===== */
.home-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .home-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .home-projects-grid {
        grid-template-columns: 1fr;
    }
}

.home-project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    height: 420px;
    display: flex;
    flex-direction: column;
}

.home-project-body {
    flex: 1;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.home-project-body h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.home-project-body p {
    color: var(--text-secondary);
    font-size: 0.87rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.6rem;
    margin-bottom: 0.8rem;
}

.home-project-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.home-project-thumb {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.home-project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(124, 58, 237, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(167, 139, 250, 0.3);
}

.home-project-cat {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    padding: 0.25rem 0.7rem;
    background: rgba(7, 7, 13, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.72rem;
    color: var(--violet-light);
    font-weight: 600;
}

.home-project-body {
    padding: 1.2rem;
}

.home-project-body h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.home-project-body p {
    color: var(--text-secondary);
    font-size: 0.87rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.home-project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.tech-tag {
    padding: 0.2rem 0.7rem;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--violet-light);
}

.home-project-links {
    display: flex;
    gap: 0.6rem;
}

.home-project-links a {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--violet-light);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.home-project-links a:hover {
    background: var(--violet-main);
    color: white;
}

/* ===== SERVICES ===== */
.home-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.2rem;
}

.home-service-card {
    padding: 1.8rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.home-service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-violet);
    transform: scaleX(0);
    transition: var(--transition);
}

.home-service-card:hover::before { transform: scaleX(1); }

.home-service-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-4px);
}

.service-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--violet-light);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.home-service-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.home-service-card p {
    color: var(--text-secondary);
    font-size: 0.87rem;
    line-height: 1.6;
}

/* ===== BLOG ===== */
.home-blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.home-blog-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.home-blog-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.home-blog-thumb {
    height: 160px;
    overflow: hidden;
}

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

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

.home-blog-body {
    padding: 1.2rem;
}

.home-blog-date {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.home-blog-date i {
    color: var(--violet-light);
    font-size: 0.72rem;
}

.home-blog-body h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.home-blog-body p {
    color: var(--text-secondary);
    font-size: 0.87rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.read-more {
    font-size: 0.82rem;
    color: var(--violet-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.home-blog-card:hover .read-more { gap: 0.7rem; }

/* ===== CTA ===== */
.cta-section { border-bottom: none; }

.cta-box {
    position: relative;
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 24px;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 400px; height: 200px;
    background: radial-gradient(ellipse,
        rgba(124, 58, 237, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-title { font-size: 2.5rem; }
    .hero-desc { margin: 0 auto 2rem; }
    .hero-btns { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-right { order: -1; }

    .float-card-1 { right: 0; top: -5%; }
    .float-card-2 { right: -5%; bottom: 5%; }
    .float-card-3 { left: 0; top: 40%; }

    .home-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-img-wrapper { width: 280px; height: 280px; }
    .float-card { display: none; }
    .home-projects-grid,
    .home-blogs-grid { grid-template-columns: 1fr; }
    .home-services-grid { grid-template-columns: 1fr; }
}