

body {
    margin: 0;
    background:
    radial-gradient(circle at 30% 35%, rgba(193,18,31,0.12) 0%, transparent 18%),
    radial-gradient(circle at 32% 37%, rgba(193,18,31,0.08) 0%, transparent 20%),
    radial-gradient(circle at 28% 34%, rgba(193,18,31,0.06) 0%, transparent 22%),
    #0a0a0a;
    min-height: 100vh;

    flex-direction: column;
    color: #e8e8e8;
    font-family: Rubik, sans-serif;
    background-size: 200% 200%;
    padding: 80;
    user-select: none;
}


html, body {
    overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}


.logo {
    width: 450px;
    height: auto;
    opacity: 0.1;
    translate: 200px 250px ;
    transform: rotate(-20deg);
}

/* NAVBAR */
.navbar {    
    display: flex;
    align-items: center;
    padding: 5px 40px; 
    box-shadow: 0 0 20px rgba(193, 18, 31, 0.2);
    position: fixed;
    top: 0;           
    left: 0;          
    right: 0;         
    justify-content: right;
    background-color: rgb(16, 16, 16);

    z-index: 1000; 

    border-bottom: 2px solid transparent;
    border-image: radial-gradient(circle, #c1121f 5%, rgba(199,87,87,0) 20%) 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.navbar h1 {
    color: #e8e8e8;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    letter-spacing: 2px;
    font-size: 40px;
}

.navbar h1 b {
    color: #c1121f;
    font-weight: bold;
    font-family: 'Outfit', sans-serif;
}

/* NAVBAR LINKS */
.navbar ul {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.navbar a {
    color: #e8e8e8;
    font-size: 20px;
    text-decoration: none;
    padding: 15px 20px;
    transition: 0.2s ease;
    position: relative;
    justify-content: right;
}

/* underline hover effect (SystemOfADownie style) */
.navbar a::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: #c1121f;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.navbar a:hover {
    color: #c1121f;
    transform: translateY(-3px);
}

.navbar a:hover::after {
    transform: scaleX(1);
}

/* MAIN SECTION */
.main {
    text-align: center;
    line-height: 1.;
    font-weight: 600;
}

.main h1 {
    font-weight: 600;
    font-size: 50px;
    letter-spacing: 1px;


background: linear-gradient(
    110deg,
    #2a0a0d 0%,
    #7a0c14 40%,
    #c1121f 70%,
    #5a0a10 100%
);

    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    animation: gradientH1text 8s linear infinite;
    
}

@keyframes gradientH1text {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/*main text */
.main h2 {
    font-size: 30px;
    color: #7a7a7a;
    letter-spacing: 1px;
    margin-top: -30px;
    font-style: italic;
}



/*accent text */
.main h2 span {
    color: #c1121f;
}



.ViewMore {
    position: relative;
    padding: 12px 24px;
    background: #0f0f0f;
    color: #e8e8e8;
    border: none;
    border-radius: 10px;
    width: 140px;
    height: 50px;
    overflow: hidden;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;

    margin: 40px auto;

    letter-spacing: 1px;
    transition: 0.3s ease;

    margin-bottom: 40vh;
}

/* animated border */
.ViewMore::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 12px;

    background: linear-gradient(
        90deg,
        #2a0a0d,
        #7a0c14,
        #c1121f,
        #7a0c14,
        #2a0a0d
    );

    animation: rotate 8s linear infinite;
    z-index: -2;
}

/* inner layer */
.ViewMore::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: #0a0a0a;
    border-radius: 8px;
    z-index: -1;
}

/* hover effect */
.ViewMore:hover {
    color: #ffffff;
    transform: translateY(-10px);
    box-shadow: 0 0 12px rgba(193, 18, 31, 0.4);
    transform: scale(1.3);
}

/* animation */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}






/* Scrollbar Styles - Black & Red */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-left: 1px solid #1a1a1a;
}

/* main thumb */
::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        #2a0a0d 0%,   /* near-black red */
        #7a0c14 40%,  /* dark red */
        #c1121f 70%,  /* main red */
        #5a0a10 100%  /* deep shadow */
    );
    border-radius: 2px;
    border: 1px solid #30070c;

    box-shadow: 
        inset 0 0 6px rgba(0, 0, 0, 0.9),
        0 0 6px rgba(193, 18, 31, 0.35);
}

/* hover */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        #3a0a0f 0%,
        #a10f1a 40%,
        #e01b2f 70%,
        #7a0c14 100%
    );

    box-shadow: 
        inset 0 0 8px rgba(0, 0, 0, 1),
        0 0 10px rgba(224, 27, 47, 0.6);
}



.PreviousProjects {
        text-align: center;
        font-weight: 600;
}

.PreviousProjects h1 {
    position: relative;
    display: inline-block;
}

.PreviousProjects h1:after {
    content: "";
    display: block;
    width: 60%;
    height: 6px;
    margin: 10px auto 0 auto;
    background: linear-gradient(135deg, #c1121f, #7a0c14);
    border-radius: 2px;
}

/* ABOUT ME SECTION   */
.about-section {
    padding: 100px 40px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-container {
    text-align: left;
}

.about-title {
    font-size: 72px;
    font-weight: 600;
    color: #e8e8e8;
    margin: 0 0 30px 0;
    letter-spacing: -1px;
}

.about-title .highlight {
    position: relative;
    display: inline-block;

    background: linear-gradient(
    110deg,
    #7a0c14 40%,
    #c1121f 70%,
    #5a0a10 100%
);

    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    animation: gradientH1text 8s linear infinite;
    
}

@keyframes gradientH1text {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }

}

.about-title:after {
    content: "";
    display: block;
    width: 158px;
    height: 7px;
    background: linear-gradient(135deg, #c1121e70, #c1121f);
    margin: 12px 0 0 325px;   /* match the title padding */
    border-radius: 2px;
    
}


.about-text {
    font-size: 1.6rem;
    line-height: 1.2;
    color: #e8e8e8;
    max-width: 1000px;
    text-align: left;
}



.accent:hover {
    text-shadow: 5px 8px 12px rgba(193, 18, 31, 0.5);
    transition: text-shadow 0.2s ease;
}

.about-p {
    color: #d1d5db; /* Lighter gray - better contrast */
    line-height: 1.6;
    margin-bottom: 28px;
    text-align: left;
    font-weight: 400;
}

.accent {
    color: #c1121f;
    font-weight: 600;
    text-shadow: 0 0 4px rgba(193, 18, 31, 0.3);
}


#PreviousProjects {
  text-align: center;
}

.PreviousProjects h1 {
    font-size: 52px
}

.project-card {
  position: relative;
  width: 1300px;
  height: auto;
  margin: 40px auto;

  border-radius: 16px;
  overflow: hidden;

  border: 1px solid rgba(255,255,255,0.1);
  background: #0b0f14;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.project-image {
  width: 100%;
  display: block;
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  padding: 20px;

  color: white;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.6) 40%,
    rgba(0,0,0,0) 100%
  );
}

/* Text styling */
.project-overlay h3 {
  margin: 0;
  font-size: 22px;
}

.project-overlay p {
  margin-top: 5px;
  font-size: 14px;
  color: #ffffff;
}

.project-card:hover .project-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.95),
    rgba(0,0,0,0.7),
    rgba(0,0,0,0)
  );
}

.project-overlay a {
    color: #c1121f;
    display: inline-block; /* 🔥 required for transform to work properly */
}

.project-overlay a:hover {
    animation: jiggle 2s ease-in-out infinite;
}

@keyframes jiggle {
    0%   { transform: rotate(0deg); }
    25%  { transform: rotate(3deg); }
    50%  { transform: rotate(-3deg); }
    75%  { transform: rotate(2deg); }
    100% { transform: rotate(0deg); }
}



.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px; 
}

.container {
    width: 100%;
    max-width: 900px; 
    text-align: center;
}

.contact h1 {
    font-size: 60px; 
    margin-bottom: 15px;
}

.subtitle {
    color: #aaa;
    margin-bottom: 60px; 
    font-size: 20px; 
}

form {
    background: rgba(255,255,255,0.03);
    padding: 50px 90px; 
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.row {
    display: flex;
    gap: 40px; 
    flex-wrap: wrap;
}

.input-group {
    width: 100%;
    text-align: left;
    margin-bottom: 30px;
}

.row .input-group {
    flex: 1;
}

label {
    font-size: 16px; 
    margin-bottom: 8px;
    display: block;
    color: #ccc;
}

input, textarea {
    width: 90%;
    padding: 18px; 
    border-radius: 12px;
    border: 1px solid #333;
    background: #111;
    color: #fff;
    font-size: 16px; 
    transition: 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #c1121f;
    box-shadow: 0 0 12px rgba(0,198,255,0.3);
}

textarea {
    min-height: 160px;
}

.contact button {
    width: 100%;
    padding: 20px; 
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #c1121f, #7a0c14);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.contact button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px #7a0c14;
}



.footer {
    margin-top: 120px;
    background: #0a0a0a;
    border-top: 1px solid #c1121f;
    padding: 60px 20px 20px;
}

/* CENTER CONTAINER */
.footer-container {
    max-width: 1100px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;

    align-items: start;
}

/* LEFT SECTION */
.footer-left h2 {
    font-size: 24px;
    letter-spacing: 2px;
    margin: 0;
}

.footer-left span {
    color: #c1121f;
}

.footer-left p {
    color: #ffffff;
    margin-top: 12px;
    max-width: 200px;
    line-height: 1.5;
    margin-left: 110px;
}

/* SECTION TITLE  */
.footer-title {
    font-size: 13px;
    color: #666;
    margin-bottom: 0px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-left: -200px;
    font-weight: bold;
}

/* LINKS COLUMN */
.footer-center,
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* LINKS */
.footer a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;

    display: flex;
    align-items: center;
    gap: 10px;

    transition: 0.2s ease;
}

/* hover */
.footer a:hover {
    color: #c1121f;
    transform: translateX(4px);
}

/* FONT AWESOME ICONS */
.footer a i {
    font-size: 18px;
    width: 22px;
    color: #c1121f;
    transition: 0.2s ease;
}

/* icon hover */
.footer a:hover i {
    color: #ff2a3d;
    transform: scale(1.1);
}

/* BOTTOM SECTION */
.footer-bottom {
    max-width: 1100px;
    margin: 40px auto 0;

    text-align: center;
    border-top: 1px solid #c1121e4d;
    padding-top: 18px;
}

.footer-bottom p {
    font-size: 13px;
    color: #ffffff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer a {
        justify-content: center;
    }

    .footer-left p {
        margin: 10px auto;
    }
}


.contact h1:after {
    content: "";
    display: block;
    width: 258px;
    height: 7px;
    background: linear-gradient(135deg, #c1121f, #7a0c14);
    margin: 12px 0 0 325px;   /* match the title padding */
    border-radius: 2px;
}


/* Mobile View Styles - Add to your existing CSS file */

@media (max-width: 768px) {
  /* Logo */
  .logo {
    width: 200px;
    translate: 20px 100px;
    transform: rotate(-15deg);
    opacity: 0.15;
  }

  /* Navbar */
  .navbar {
    padding: 10px 15px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .navbar h1 {
    position: relative;
    left: auto;
    transform: none;
    font-size: 24px;
    width: 100%;
    text-align: center;
    margin-bottom: 5px;
  }

  .navbar a {
    font-size: 14px;
    padding: 8px 12px;
  }

  /* Main Section */
  .main {
    padding: 0 20px;
  }

  .main h1 {
    font-size: 32px;
  }

  .main h2 {
    font-size: 18px;
    margin-top: -15px;
  }

  
  /* View More Button */
  .ViewMore {
    width: 120px;
    height: 45px;
    margin: 30px auto 50px auto;
  }

  /* About Section */
  .about-section {
    padding: 50px 20px;
  }

  .about-title {
    font-size: 42px;
    text-align: center;
  }

  .about-title:after {
    width: 100px;
    margin: 12px auto 0 auto;
  }

  .about-text {
    font-size: 1.1rem;
  }

  .about-p {
    font-size: 15px;
    line-height: 1.5;
  }

  /* Projects Section */
  .PreviousProjects h1 {
    font-size: 32px;
  }

  .PreviousProjects h1:after {
    width: 200px;
    margin: 10px auto 0 auto;
  }

  .project-card {
    width: calc(100% - 40px);
    max-width: 450px;
    margin: 25px auto;
  }

  .project-overlay {
    padding: 15px;
  }

  .project-overlay h3 {
    font-size: 16px;
  }

  .project-overlay p {
    font-size: 12px;
  }

  /* Contact Section */
  .contact {
    padding: 50px 20px;
  }

  .contact h1 {
    font-size: 38px;
  }

  .contact h1:after {
    width: 150px;
    margin: 12px auto 0 auto;
  }

  .subtitle {
    font-size: 15px;
    margin-bottom: 30px;
  }

  form {
    padding: 25px 20px;
  }

  .row {
    flex-direction: column;
    gap: 0;
  }

  .input-group {
    margin-bottom: 20px;
  }

  input, textarea {
    padding: 12px;
    font-size: 14px;
  }

  textarea {
    min-height: 120px;
  }

  .contact button {
    padding: 14px;
    font-size: 16px;
  }

  /* Footer */
  .footer {
    margin-top: 60px;
    padding: 40px 20px 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-left p {
    margin: 10px auto;
  }

  .footer-title {
    margin-left: 0;
  }

  .footer-center,
  .footer-right {
    align-items: center;
  }

  .footer a {
    justify-content: center;
  }
}

/* Extra Small Devices (phones under 480px) */
@media (max-width: 480px) {
  .logo {
    width: 150px;
    translate: 10px 80px;
  }

  .navbar h1 {
    font-size: 20px;
  }

  .navbar a {
    font-size: 12px;
    padding: 5px 8px;
  }

  .main h1 {
    font-size: 26px;
  }

  .main h2 {
    font-size: 16px;
  }

  .about-title {
    font-size: 34px;
  }

  .PreviousProjects h1 {
    font-size: 26px;
  }

  .project-card {
    width: calc(100% - 30px);
  }

  .contact h1 {
    font-size: 30px;
  }

  form {
    padding: 20px 15px;
  }
}