@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
}

body {
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

/* ===== LOADER ===== */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-text {
    color: #b74b4b;
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: 0.2rem;
    border-right: 0.3rem solid #b74b4b; /* cursor */
    white-space: nowrap;
    overflow: hidden;
    animation: blinkCursor 0.7s infinite;
}

@keyframes blinkCursor {
    from, to { border-color: transparent }
    50% { border-color: #b74b4b }
}

@media (max-width: 600px) {
    .loader-text { font-size: 2.2rem; }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.6rem 9%;
    background-color: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #1e1e1e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #b74b4b;
    box-shadow: 0 0 10px rgba(183, 75, 75, 0.5);
    transition: 0.4s ease;
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.1);
}

nav a {
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

#menu-icon {
    font-size: 3.6rem;
    color: white;
    cursor: pointer;
    display: none;
}

@media(max-width:995px) {
    #menu-icon {
        display: block;
    }
    nav {
        position: absolute;
        display: none;
        top: 100%;
        right: 0;
        width: 40%;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 2rem;
        padding: 1rem;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: block;
    }

    nav a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav a.active {
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #b74b4b;
    }
}

section {
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
}

.home .home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span {
    color: #b74b4b;
}

.home-content h3 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p {
    font-size: 1.6rem;
}

.home-img {
    border-radius: 50%;
}

.home-img img {
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px solid #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover {
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #b74b4b;
}

.social-icons a:hover {
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #b74b4b;
    box-shadow: 0 0 25px #b74b4b;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    transform: scale3d(1.03);
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn-download {
    background-color: #b74b4b;
    color: white;
    border-color: #b74b4b;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-download:hover {
    background-color: transparent;
    color: #b74b4b;
    box-shadow: 0 0 25px #b74b4b;
    transform: scale(1.03);
}

.typing-text {
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span {
    position: relative;
}

.typing-text span::before {
    content: "software Developer";
    color: #b74b4b;
    animation: words 20s infinite;
}

.typing-text span::after {
    content: "";
    background-color: black;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    right: -8;
    animation: cursor 0.6s infinite;
}

@keyframes cursor {
    to {
        border-left: 3px solid #b74b4b;
    }
}

@keyframes words {

    0%,
    20% {
        content: "Web Developer";
    }

    21%,
    40% {
        content: "Developer";
    }

    41%,
    60% {
        content: "Web Designer";
    }

    61%,
    80% {
        content: "Youtuber";
    }

    81%,
    100% {
        content: "Script Writer";
    }
}

@media (max-width: 1000px) {
    .home {
        gap: 4rem;
    }
}

@media(max-width:995px) {
    .home {
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content h3 {
        font-size: 2.5rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }
}

/* ===== SHARED PAGE STYLES ===== */
.page-section {
    min-height: 100vh;
    padding: 10rem 9% 5rem;
    background-color: black;
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 4.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title h2 span {
    color: #b74b4b;
}

.section-title p {
    font-size: 1.6rem;
    color: #aaa;
    margin-top: 1rem;
}

/* ===== SERVICES PAGE ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.service-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 1.5rem;
    padding: 3.5rem 3rem;
    text-align: center;
    transition: 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: #b74b4b;
    transform: scaleX(0);
    transition: 0.4s ease;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 40px rgba(183,75,75,0.25);
    border-color: #b74b4b;
}

.service-card i {
    font-size: 5rem;
    color: #b74b4b;
    margin-bottom: 2rem;
}

.service-card h3 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.service-card p {
    font-size: 1.5rem;
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    border-top: 1px solid #2a2a2a;
    padding-top: 1.8rem;
}

.service-list li {
    font-size: 1.4rem;
    color: #bbb;
    padding: 0.55rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: color 0.3s ease;
}

.service-list li:hover {
    color: #fff;
}

.service-list li i {
    font-size: 1.2rem;
    color: #b74b4b;
    margin-bottom: 0;
    flex-shrink: 0;
    background: rgba(183,75,75,0.12);
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== SKILLS PAGE ===== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 4rem;
}

.skills-category h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #b74b4b;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid #b74b4b;
    padding-bottom: 1rem;
}

.skill-item {
    margin-bottom: 2.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.skill-bar {
    background: #222;
    border-radius: 5rem;
    height: 1rem;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #b74b4b, #e87070);
    border-radius: 5rem;
    animation: fillBar 1.4s ease forwards;
    width: 0;
}

@keyframes fillBar {
    to { width: var(--fill); }
}

/* ===== EDUCATION PAGE ===== */
.timeline {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
    padding-left: 4rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #b74b4b, transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    padding: 3rem;
    background: #111;
    border-radius: 1.2rem;
    border: 1px solid #222;
    transition: 0.3s ease;
}

.timeline-item:hover {
    border-color: #b74b4b;
    box-shadow: 0 6px 30px rgba(183,75,75,0.2);
    transform: translateX(5px);
}

.timeline-dot {
    position: absolute;
    left: -3.5rem;
    top: 3rem;
    width: 1.4rem;
    height: 1.4rem;
    background: #b74b4b;
    border-radius: 50%;
    box-shadow: 0 0 12px #b74b4b;
}

.timeline-item .year {
    font-size: 1.3rem;
    color: #b74b4b;
    font-weight: 600;
    letter-spacing: 0.1rem;
    margin-bottom: 0.6rem;
}

.timeline-item h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-item h4 {
    font-size: 1.5rem;
    color: #aaa;
    font-weight: 400;
    margin-bottom: 1rem;
}

.timeline-item p {
    font-size: 1.4rem;
    color: #888;
    line-height: 1.8;
}

/* ===== EXPERIENCE PAGE ===== */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
}

.exp-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 1.5rem;
    padding: 3rem;
    transition: 0.4s ease;
    position: relative;
}

.exp-card:hover {
    border-color: #b74b4b;
    transform: translateY(-6px);
    box-shadow: 0 10px 40px rgba(183,75,75,0.2);
}

.exp-card .exp-icon {
    font-size: 4rem;
    color: #b74b4b;
    margin-bottom: 1.5rem;
}

.exp-card .exp-period {
    font-size: 1.3rem;
    color: #b74b4b;
    font-weight: 600;
    letter-spacing: 0.1rem;
    margin-bottom: 0.8rem;
}

.exp-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.exp-card h4 {
    font-size: 1.5rem;
    color: #aaa;
    margin-bottom: 1.5rem;
}

.exp-card ul {
    list-style: none;
    padding: 0;
}

.exp-card ul li {
    font-size: 1.4rem;
    color: #888;
    padding: 0.4rem 0;
    padding-left: 1.8rem;
    position: relative;
    line-height: 1.7;
}

.exp-card ul li::before {
    content: '▸';
    color: #b74b4b;
    position: absolute;
    left: 0;
}

/* ===== CONTACT PAGE ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 6rem;
    align-items: start;
    max-width: 110rem;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.5rem;
    color: #aaa;
    line-height: 1.9;
    margin-bottom: 3rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-detail i {
    font-size: 2.2rem;
    color: #b74b4b;
    width: 4.5rem;
    height: 4.5rem;
    border: 2px solid #b74b4b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail span {
    font-size: 1.5rem;
    color: #ccc;
}

.contact-form {
    background: #111;
    border: 1px solid #222;
    border-radius: 2rem;
    padding: 4rem;
}

.form-group {
    margin-bottom: 2.5rem;
}

.form-group label {
    display: block;
    font-size: 1.4rem;
    color: #aaa;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.8rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0.8rem;
    color: white;
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
    transition: 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #b74b4b;
    box-shadow: 0 0 0 3px rgba(183,75,75,0.15);
    background: #1e1e1e;
}

.form-group textarea {
    resize: vertical;
    min-height: 14rem;
}

.btn-send {
    width: 100%;
    padding: 1.4rem;
    background: #b74b4b;
    color: white;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: 4rem;
    cursor: pointer;
    letter-spacing: 0.2rem;
    transition: 0.3s ease;
    border: 2px solid #b74b4b;
}

.btn-send:hover {
    background: transparent;
    color: #b74b4b;
    box-shadow: 0 0 25px rgba(183,75,75,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .contact-wrapper { grid-template-columns: 1fr; gap: 4rem; }
    .page-section { padding: 10rem 5% 5rem; }
}

@media (max-width: 600px) {
    .section-title h2 { font-size: 3.2rem; }
    .services-grid, .experience-grid { grid-template-columns: 1fr; }
}

/* ===== CARD CTA (Services listing) ===== */
.card-cta {
    margin-top: 2rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: #b74b4b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    letter-spacing: 0.05rem;
    transition: gap 0.3s ease;
}
.service-card:hover .card-cta { gap: 1.4rem; }

/* Make anchor cards look like divs */
a.service-card { display: block; color: inherit; }

/* ===== SIMPLE SERVICE CARDS (listing page) ===== */
.simple-cards {
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    gap: 3rem;
    max-width: 120rem;
    margin: 0 auto;
}

.service-card.simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 3rem 4rem;
    gap: 0;
    min-height: 28rem;
    cursor: pointer;
}

.service-card.simple .sc-icon {
    font-size: 5.5rem;
    color: #b74b4b;
    margin-bottom: 2.5rem;
    transition: transform 0.4s ease, text-shadow 0.4s ease;
}

.service-card.simple:hover .sc-icon {
    transform: scale(1.15) translateY(-5px);
    text-shadow: 0 0 30px rgba(183, 75, 75, 0.7);
}

.service-card.simple h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: white;
}

.service-card.simple .card-cta {
    font-size: 1.4rem;
    font-weight: 600;
    color: #b74b4b;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: gap 0.3s ease;
    margin-top: 0;
}

.service-card.simple:hover .card-cta {
    gap: 1.4rem;
}



/* ===== BREADCRUMB ===== */
.breadcrumb {
    margin-bottom: 3rem;
}
.breadcrumb a {
    font-size: 1.5rem;
    color: #888;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: color 0.3s;
}
.breadcrumb a:hover { color: #b74b4b; }

/* ===== SERVICE DETAIL HERO ===== */
.sd-hero {
    text-align: center;
    padding: 4rem 0 5rem;
    max-width: 75rem;
    margin: 0 auto;
}
.sd-hero-icon {
    font-size: 7rem;
    color: #b74b4b;
    margin-bottom: 2rem;
    animation: pulse-icon 3s ease-in-out infinite;
}
@keyframes pulse-icon {
    0%, 100% { text-shadow: 0 0 20px rgba(183,75,75,0.4); }
    50%       { text-shadow: 0 0 40px rgba(183,75,75,0.9); }
}
.sd-hero h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.sd-hero p {
    font-size: 1.7rem;
    color: #aaa;
    line-height: 1.9;
}

/* ===== SD SECTION WRAPPER ===== */
.sd-section {
    margin-bottom: 7rem;
}
.sd-heading {
    font-size: 3.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
}

/* ===== OFFER GRID ===== */
.sd-offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
    gap: 2.5rem;
}
.sd-offer-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 1.2rem;
    padding: 3rem 2.5rem;
    text-align: center;
    transition: 0.35s ease;
}
.sd-offer-card:hover {
    border-color: #b74b4b;
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(183,75,75,0.2);
}
.sd-offer-card i {
    font-size: 3.8rem;
    color: #b74b4b;
    margin-bottom: 1.5rem;
}
.sd-offer-card h3 {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.sd-offer-card p {
    font-size: 1.4rem;
    color: #999;
    line-height: 1.8;
}

/* ===== PROCESS STEPS ===== */
.sd-process {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.sd-step {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    background: #111;
    border: 1px solid #222;
    border-radius: 1.2rem;
    padding: 2.5rem 3rem;
    transition: 0.3s ease;
}
.sd-step:hover {
    border-color: #b74b4b;
    box-shadow: 0 4px 20px rgba(183,75,75,0.15);
    transform: translateX(5px);
}
.sd-step-num {
    font-size: 3.5rem;
    font-weight: 800;
    color: #b74b4b;
    opacity: 0.3;
    min-width: 5rem;
    line-height: 1;
}
.sd-step:hover .sd-step-num { opacity: 0.8; }
.sd-step-body h3 {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}
.sd-step-body p {
    font-size: 1.4rem;
    color: #999;
    line-height: 1.8;
}

/* ===== TOOLS PILLS ===== */
.sd-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}
.sd-tool {
    background: #111;
    border: 1px solid #333;
    color: #ccc;
    font-size: 1.4rem;
    padding: 0.9rem 2rem;
    border-radius: 5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: 0.3s ease;
}
.sd-tool i { color: #b74b4b; }
.sd-tool:hover {
    border-color: #b74b4b;
    color: white;
    background: rgba(183,75,75,0.1);
}

/* ===== SERVICE DETAIL CTA ===== */
.sd-cta {
    text-align: center;
    padding: 6rem 3rem;
    background: linear-gradient(135deg, #111 0%, #1a0a0a 100%);
    border: 1px solid #2a1a1a;
    border-radius: 2rem;
    margin-top: 2rem;
}
.sd-cta h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}
.sd-cta p {
    font-size: 1.6rem;
    color: #aaa;
    margin-bottom: 3rem;
}

/* ===== SD RESPONSIVE ===== */
@media (max-width: 768px) {
    .sd-hero h1 { font-size: 3.5rem; }
    .sd-offer-grid { grid-template-columns: 1fr; }
    .sd-step { flex-direction: column; gap: 1rem; }
    .sd-step-num { font-size: 2.5rem; }
    .sd-cta h2 { font-size: 2.6rem; }
}