/* Reset & Base Styles */
:root {
    --primary-color: #6366f1;
    /* Indigo 500 */
    --secondary-color: #4f46e5;
    /* Indigo 600 */
    --accent-color: #ec4899;
    /* Pink 500 */
    --dark-bg: #0f172a;
    /* Slate 900 */
    --card-bg: #1e293b;
    /* Slate 800 */
    --text-color: #ffffff;
    /* Pure White */
    --text-muted: #ffffff;
    /* Pure White for paragraphs */
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    background-color: transparent;
    /* Changed to transparent, let canvas handle background */
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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



/* Header */
header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 0;
}

.pixel-snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    /* Push to back */
    pointer-events: auto;
    /* Allow mouse interaction */
    background: var(--dark-bg);
    overflow: hidden;
    contain: layout style paint;
}

.pixel-snow-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-image img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition);
    animation: floatImage 5s ease-in-out infinite;
}

.hero-image img:hover {
    animation-play-state: paused;
    transform: scale(1.05);
}

header h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInDown 1s ease-out;
    line-height: 1.1;
}

header p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    max-width: 600px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.hero-professional-title {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
    animation-delay: 0.3s;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: var(--transition);
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.btn:hover {
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
    transform: none;
    /* Let magnet.js handle transform if wrapped */
}

/* Sections */
section {
    padding: 6rem 0;
}

/* Scroll Velocity Divider */
.scroll-velocity {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 3rem 0;
    width: 100%;
    background: transparent;
    position: relative;
    z-index: 10;
}

.parallax {
    overflow: hidden;
    display: flex;
    white-space: nowrap;
    width: 100%;
}

.scroller {
    display: flex;
    white-space: nowrap;
    will-change: transform;
}

.scroller span {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-main);
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.scroller:hover span {
    -webkit-text-stroke: 1px rgba(99, 102, 241, 0.4);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* About */
.about p {
    font-size: 1.25rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* Skills */
.skills ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.skills li {
    list-style: none;
}

.skill-inner {
    background: var(--card-bg);
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
    color: var(--text-color);
    display: block;
}

.skill-inner:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transform: none;
    /* Let magnet.js handle transform */
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-box {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    text-align: center;
}

.service-box:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-box p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.service-btn {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    box-shadow: none;
    color: var(--text-color);
}

.service-btn:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transform: none;
    /* Let magnet.js handle transform */
}

/* Blogs Section */
.blogs-section {
    background: transparent;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(99, 102, 241, 0.3);
}

.blog-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    line-height: 1.4;
    transition: var(--transition);
}

.blog-card:hover .blog-content h3 {
    color: var(--primary-color);
}

.blog-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.read-more i {
    transition: transform 0.3s ease;
}

.blog-card:hover .read-more i {
    transform: translateX(5px);
}

/* Process Timeline */
.process-section {
    padding: 6rem 0;
}

.process-container {
    max-width: 800px;
    margin: 0 auto;
}

.process-container h2 {
    font-size: 3rem;
    margin-bottom: 50px;
    font-weight: 700;
    text-align: center;
}

.timeline {
    position: relative;
    padding-left: 50px;
}

/* The vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

.timeline .step {
    position: relative;
    margin-bottom: 40px;
}

/* The glowing circles */
.timeline .step::before {
    content: '';
    position: absolute;
    left: -44px;
    /* Align with the vertical line */
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--dark-bg);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color), inset 0 0 5px var(--primary-color);
    z-index: 1;
}

.timeline .step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-color);
}

.timeline .step-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Last step line fade-out effect */
.timeline .step:last-child {
    margin-bottom: 0;
}

/* Call to Action */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    transform: none;
    left: auto;
}

.cta-content h2::after {
    display: none;
}

/* Stats Section */
.stats-section {
    background: transparent;
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

.stat-box {
    flex: 1;
    min-width: 200px;
    margin: 20px 10px;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-color);
    background: linear-gradient(to right, var(--text-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-text {
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-top: 10px;
    font-weight: 600;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn.outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn.outline:hover {
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
    transform: translateY(-3px);
}

/* Contact */
.contact-section {
    padding: 6rem 10%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Left Side: Info */
.contact-info {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
    position: relative;
    z-index: 1;
}

.contact-info p:first-of-type {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.contact-info h2 {
    font-size: 3.5rem;
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: left;
    left: 0;
    transform: none;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-info h2::after {
    margin: 0.5rem 0 0 0;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.info-item .icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.info-item:hover .icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Right Side: Form */
.contact-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(30, 41, 59, 0.6);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.send-btn {
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.send-btn:hover {
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
    transform: none;
    /* Let magnet.js handle transform */
}

/* Footer */
footer {
    padding: 3rem 0 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
    position: relative;
}

.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 2rem;
}

.footer-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer-menu {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-menu a {
    color: var(--text-color);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--accent-color);
}

.back-to-top {
    position: absolute;
    right: 2rem;
    bottom: auto;
    /* Vertically centered using flex context or manual offset */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    text-decoration: none;
    z-index: 10;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
    color: white;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.footer-socials-wrapper {
    display: flex;
    align-items: center;
    margin-right: 60px;
    /* Leave space so it doesn't overlap the back-to-top button */
}

.social-icons {
    display: flex;
    gap: 25px;
}

.social-icons a {
    color: #fff;
    font-size: 24px;
    transition: 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

/* Social Sidebar */
.social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
    padding-right: 10px;
    /* pull slightly out for magnet padding */
}

.social-sidebar a {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    text-decoration: none;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* LinkedIn Color */
.social-sidebar .linkedin {
    background: #0077b5;
}

/* Instagram Gradient */
.social-sidebar .instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Hover Effect */
.social-sidebar a:hover {
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
    transform: none;
    /* Handled by magnet wrapper */
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
    }

    header h1 {
        font-size: 3.5rem;
    }

    header p {
        margin: 0 auto 2rem;
    }

    .hero-image img {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    header {
        padding: 6rem 0;
        /* Less vertical padding on mobile */
    }

    header h1 {
        font-size: 2.8rem;
    }

    .cta-content h2 {
        font-size: 2.2rem;
    }

    section {
        padding: 4rem 0;
    }

    .contact-section {
        flex-direction: column;
        padding: 4rem 5%;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .contact-form {
        padding: 2rem;
        width: 100%;
    }

    .back-to-top {
        position: static;
        margin-top: 1rem;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .footer-content-wrapper {
        align-items: center;
        text-align: center;
    }

    .footer-socials-wrapper {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {

    /* Container Padding */
    .container {
        padding: 0 1.2rem;
    }

    /* Header */
    header h1 {
        font-size: 2.2rem;
    }

    header p,
    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-professional-title {
        font-size: 0.95rem;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
    }

    /* Buttons */
    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
    }

    /* Headings */
    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Scroller */
    .scroller span {
        font-size: 2.5rem;
    }

    /* Stats */
    .stat-box {
        min-width: 140px;
        /* Forces 2 columns on very small screens */
        margin: 10px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-text {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    /* Process Timeline */
    .process-container h2 {
        font-size: 2.2rem;
    }

    .timeline {
        padding-left: 30px;
        /* Reduced left padding */
    }

    .timeline::before {
        left: 5px;
        /* Moved line left */
    }

    .timeline .step::before {
        left: -32px;
        /* Adjusted glowing circle to align with new line position */
        width: 12px;
        height: 12px;
    }

    .timeline .step-title {
        font-size: 1.2rem;
    }

    /* Contact Details */
    .contact-info h2 {
        font-size: 2.5rem;
        text-align: center;
    }

    .contact-info h2::after {
        margin: 0.5rem auto 0 auto;
    }

    .contact-info {
        text-align: center;
    }

    .info-item {
        flex-direction: column;
        gap: 10px;
    }

    .info-item .icon {
        margin-right: 0;
    }

    /* Form */
    .contact-form {
        padding: 1.5rem;
        gap: 15px;
    }

    /* Social Sidebar */
    .social-sidebar a {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    /* Footer Navigation */
    .footer-menu {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}