@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;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: #000;
    color: #fff;
    scroll-behavior: smooth;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}


/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background-color: rgba(10, 10, 10, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
}

.logo {
    font-size: 2.5rem;
    color: #b74b4b;
    font-weight: 700;
    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    font-size: 1.6rem;
    color: #fff;
    font-weight: 500;
    transition: 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

nav a:hover, nav a.active {
    color: #b74b4b;
    background: rgba(183, 75, 75, 0.1);
}

.menu-toggle {
    display: none;
    font-size: 2.4rem;
    cursor: pointer;
    color: #fff;
}

/* Home Section */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10rem 9% 5rem;
    gap: 0rem;
    /* background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%); */
}

.home-content {
    flex: 1;
}

.home-content h1 {
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.home-content h3 {
    font-size: 3.2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.home-content p {
    font-size: 1.6rem;
    margin-bottom: 3rem;
    line-height: 1.6;
    color: #ccc;
}

.home-img {
    
    flex: 1;
    display: flex;
    justify-content: center;
}

.home-img img {
    
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 1rem;
    /* box-shadow: 0 10px 30px rgba(183, 75, 75, 0.3); */ 
    /* transition: transform 0.3s ease;  */
    /* background: transparent; */

    mix-blend-mode: lighten; 
}

/* .home-img img:hover {
    
    transform: translateY(-10px);
} */

/* Social Icons */
.social-icons {
    display: flex;
    gap: 5.0rem;
    margin-bottom: 3rem;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 2rem;
    color: #b74b4b;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #b74b4b;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(183, 75, 75, 0.4);
}

/* Button */
.btn {
    display: inline-block;
    padding: 1.2rem 5rem;
    background: #b74b4b;
    color: #fff;
    border-radius: 5rem;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(183, 75, 75, 0.3);
}

.btn:hover {
    background: #fff;
    color: #b74b4b;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(183, 75, 75, 0.5);
}

/* Typing Animation */


.typing-text span {
    color: red;
    position: relative; /* ✅ FIXED: Needed for ::after positioning */
}

/* Removed broken @keyframes words block */

.typing-text span::after {
    content: "|";
    position: absolute;
    right: -10px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
/* .typing-text {
    font-size: 3rem;
    font-weight: 600;
    min-width: 280px;
    margin-bottom: 2rem;
    color: #b74b4b;
} */

.typing-text span::before {
    content: "Software Developer";
    color: #b74b4b;
    animation: words 20s infinite;
}

/* .typing-text span::after {
    content: "";
    background-color: #0a0a0a;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid #0a0a0a;
    right: -8px;
    animation: cursor 0.6s infinite;
} */

@keyframes cursor {
    to {
        border-left: 3px solid #b74b4b;
    }
}

@keyframes words {
    0%, 20% { content: "Web Developer"; }
    21%, 40% { content: "Script Writer"; }
    41%, 60% { content: "Content Writer"; }
    61%, 80% { content: "Content Creator"; }
    81%, 100% { content: "Video Creator"; }
}

/* Skills Section */
.skills-section {
    padding: 10rem 9% 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-title {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 5rem;
    color: #b74b4b;
}

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

.skill-card {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 1rem;
    padding: 2.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid #b74b4b;
    box-shadow: 0 5px 15px rgba(183, 75, 75, 0.1);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(183, 75, 75, 0.2);
    background: rgba(40, 40, 40, 0.9);
}

.skill-icon {
    font-size: 3rem;
    color: #b74b4b;
    margin-bottom: 1.5rem;
}

.skill-name {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.skill-desc {
    font-size: 1.5rem;
    color: #ccc;
    line-height: 1.6;
}

/* Education Section */
.education-section {
    padding: 10rem 9% 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.education-title {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 5rem;
    color: #b74b4b;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #b74b4b;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.edu-card {
    position: relative;
    background: rgba(30, 30, 30, 0.7);
    width: 46%;
    padding: 2.5rem;
    border-radius: 1rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 15px rgba(183, 75, 75, 0.1);
    transition: all 0.3s ease;
}

.edu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(183, 75, 75, 0.2);
    background: rgba(40, 40, 40, 0.9);
}

.edu-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #b74b4b;
    border-radius: 50%;
    top: 30px;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 54%;
}

.left::after {
    right: -10px;
}

.right::after {
    left: -10px;
}

.edu-degree {
    font-size: 2.2rem;
    color: #b74b4b;
    margin-bottom: 1rem;
}

.edu-details {
    font-size: 1.5rem;
    color: #ccc;
    line-height: 1.6;
}

.edu-details p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.edu-details i {
    margin-right: 0.8rem;
    color: #b74b4b;
    width: 1.5rem;
}

/* Contact Section */
.contact-section {
    padding: 10rem 9% 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-title {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 5rem;
    color: #b74b4b;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.info-card {
    background: rgba(30, 30, 30, 0.7);
    padding: 2.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid #b74b4b;
    box-shadow: 0 5px 15px rgba(183, 75, 75, 0.1);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(183, 75, 75, 0.2);
    background: rgba(40, 40, 40, 0.9);
}

.info-card i {
    font-size: 3rem;
    color: #b74b4b;
    margin-bottom: 1.5rem;
}

.info-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.info-card p, .info-card a {
    font-size: 1.5rem;
    color: #ccc;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: #b74b4b;
}

.contact-form {
    background: rgba(30, 30, 30, 0.7);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(183, 75, 75, 0.1);
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 15px 30px rgba(183, 75, 75, 0.2);
}

.input-group {
    margin-bottom: 2rem;
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1.5rem;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #333;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #b74b4b;
    box-shadow: 0 0 10px rgba(183, 75, 75, 0.3);
}

.input-group label {
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    color: #999;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-group input:focus + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label {
    top: -1rem;
    left: 1rem;
    font-size: 1.2rem;
    background: #0a0a0a;
    padding: 0 0.5rem;
    color: #b74b4b;
}

.submit-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: #b74b4b;
    color: #fff;
    border-radius: 5rem;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 5px 15px rgba(183, 75, 75, 0.3);
}

.submit-btn:hover {
    background: #fff;
    color: #b74b4b;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(183, 75, 75, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .home {
        flex-direction: column;
        text-align: center;
        padding: 15rem 5% 10rem;
    }
    
    .home-img {
        margin-bottom: 0rem;
    }
    
    .home-img img {
        max-width: 350px;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .edu-card {
        width: 100%;
        padding-left: 4rem;
        padding-right: 2rem;
    }
    
    .edu-card::after {
        left: 21px;
    }
    
    .left, .right {
        left: 0;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 8rem;
        right: -100%;
        width: 80%;
        height: calc(100vh - 8rem);
        background: #0a0a0a;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: 0.3s ease;
    }
    
    nav.active {
        right: 0;
    }
    
    .home-content h1 {
        font-size: 4.5rem;
    }
    
    .home-content h3 {
        font-size: 2.8rem;
    }
    
    .skills-title, 
    .education-title,
    .contact-title {
        font-size: 3.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 576px) {
    .home-content h1 {
        font-size: 3.8rem;
    }
    
    .home-content h3 {
        font-size: 2.4rem;
    }
    
    .btn, .submit-btn {
        padding: 1rem 2.5rem;
        font-size: 1.4rem;
    
    }
}






/* === project PAGE STYLING === */

.project-page {
  background-color: #0d0d0d;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.project-section {
  padding: 100px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.project-section h2 {
  font-size: 4.5rem;
  color: #b74b4b;
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
  
}

.project-item {
  background-color: #1e1e1eB3;
  border-left: 5px solid #b74b4b;
  padding: 30px 25px;
  margin-bottom: 40px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 26, 26, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(183, 75, 75, 0.2);
  background: rgba(40, 40, 40, 0.9);
}

.project-item h3 {
  color: #b74b4b;
  font-size: 24px;
  margin-bottom: 10px;
}

.project-item p {
  font-family: 'Poppins', sans-serif;  
  font-size: 1.5rem;
  color: #ccc;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.project-item a {
  color: #b74b4b;
  font-family: 'Poppins', sans-serif;  
  font-size: 1.5rem;
  text-decoration: underline;
  line-height: 1.7;
}

.project-item a:hover {
    color: #2e9a45;
    text-decoration: none;
    background-color: #dfd4d408;
    
}
