:root {
    --primarycolor: #1A1A1A; 
    --secondarycolor: #FFD700; 
    --accentcolor: #F5F5F5;   
    --textcolor: #FFFFFF;
    --textdark: #333333;
    --navheight: 70px;
    --fontprimary: 'Poppins', sans-serif;
    --fontsecondary: 'Roboto Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fontprimary);
    background-color: var(--accentcolor); 
    color: var(--textdark);
    line-height: 1.7;
    overflow-x: hidden; 
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 600;
    color: var(--primarycolor);
}

h1 { font-size: 2.8rem; margin-bottom: 1rem;}
h2 { font-size: 2.2rem; margin-bottom: 1rem;}
h3 { font-size: 1.5rem; margin-bottom: 0.75rem;}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: var(--primarycolor);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondarycolor);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.highlight {
    color: var(--secondarycolor);
    font-weight: 700;
}

.navbar {
    background-color: var(--primarycolor);
    color: var(--textcolor);
    padding: 0 20px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: var(--navheight);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondarycolor);
}

.navlinks ul {
    list-style: none;
    display: flex;
}

.navlinks ul li {
    margin-left: 25px;
}

.navlinks ul li a {
    color: var(--textcolor);
    font-size: 1rem;
    font-weight: 400;
    padding: 5px 0;
    position: relative;
}

.navlinks ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondarycolor);
    transition: width 0.3s ease;
}

.navlinks ul li a:hover::after,
.navlinks ul li a.active::after {
    width: 100%;
}

.navlinks ul li a.active {
    color: var(--secondarycolor);
    font-weight: 600;
}

.menubutton {
    display: none; 
    background: none;
    border: none;
    color: var(--textcolor);
    cursor: pointer;
}
.menubutton svg {
    stroke: var(--textcolor);
}


.button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.primarybutton {
    background-color: var(--secondarycolor);
    color: var(--primarycolor);
    border: 2px solid var(--secondarycolor);
}

.primarybutton:hover {
    background-color: #ffcf00; 
    border-color: #ffcf00;
    color: var(--primarycolor);
}

.secondarybutton {
    background-color: transparent;
    color: var(--primarycolor);
    border: 2px solid var(--primarycolor);
}

.secondarybutton:hover {
    background-color: var(--primarycolor);
    color: var(--textcolor);
}

.smallbutton {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.animated-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 36px;
  border: 4px solid;
  border-color: transparent;
  font-size: 16px;
  background-color: inherit;
  border-radius: 100px;
  font-weight: 600;
  color: rgb(0, 0, 0);
  box-shadow: 0 0 0 2px #FFD700;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button svg {
  position: absolute;
  width: 24px;
  fill: #FFD700;
  z-index: 9;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .arr-1 {
  right: 16px;
}

.animated-button .arr-2 {
  left: -25%;
}

.animated-button .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: #FFD700;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button:hover {
  box-shadow: 0 0 0 12px transparent;
  color: #212121;
  border-radius: 12px;
}

.animated-button:hover .arr-1 {
  right: -25%;
}

.animated-button:hover .arr-2 {
  left: 16px;
}

.animated-button:hover .text {
  transform: translateX(12px);
}

.animated-button:hover svg {
  fill: #212121;
}

.animated-button:active {
  scale: 0.95;
  box-shadow: 0 0 0 4px rgb(255, 245, 47);
}

.animated-button:hover .circle {
  width: 220px;
  height: 220px;
  opacity: 1;
}


.hero {
    background-color: var(--primarycolor);
    color: var(--textcolor);
    min-height: calc(100vh - var(--navheight));
    display: flex;
    align-items: center;
    padding: 40px 0;
    position: relative;
    overflow: hidden; 
}

/* .herocontent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 120px;
}

.herotext {
    flex: 1.2; 
    animation: slideInFromLeft 0.8s ease-out;
} */

.herotext .greeting {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--textcolor);
    margin-bottom: 0.5rem;
}

.herotext .tagline {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accentcolor);
    font-weight: 300;
}

.herotext .introduction {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #ccc; 
}

.herotext .button {
    margin-right: 15px;
    margin-bottom: 10px; 
}
.herotext .secondarybutton {
    color: var(--textcolor);
    border-color: var(--accentcolor);
}
.herotext .secondarybutton:hover {
    background-color: var(--accentcolor);
    color: var(--primarycolor);
}


.herocontent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 120px;
}

.herotext {
    flex: 1;
    animation: slideInFromLeft 0.8s ease-out;
}

.heroimage {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInFromRight 0.8s ease-out;
}

/* .abstractshape {
    background: url(images/chucks.png);
   background-position: center;
     background-repeat: no-repeat;
    background-size: cover;
} */

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(45deg) scale(1.05);
    }
    100% {
        border-radius: 50% 50% 30% 70% / 40% 60% 40% 60%;
        transform: rotate(90deg) scale(1);
    }
}

@keyframes slideInFromLeft {
    0% { transform: translateX(-100px); opacity: 0;}
    100% { transform: translateX(0); opacity: 1;}
}
@keyframes slideInFromRight {
    0% { transform: translateX(100px); opacity: 0;}
    100% { transform: translateX(0); opacity: 1;}
}

ul {
  list-style: none;
}

.example-2 {
  display: flex;
  justify-content: center;
  align-items: center;
}
.example-2 .icon-content {
  margin: 0 10px;
  position: relative;
}
.example-2 .icon-content .tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  font-size: 14px;
  transition: all 0.3s ease;
}
.example-2 .icon-content:hover .tooltip {
  opacity: 1;
  visibility: visible;
  top: -50px;
}
.example-2 .icon-content a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #4d4d4d;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}
.example-2 .icon-content a:hover {
  box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
}
.example-2 .icon-content a svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
}
.example-2 .icon-content a:hover {
  color: white;
}
.example-2 .icon-content a .filled {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #000;
  transition: all 0.3s ease-in-out;
}
.example-2 .icon-content a:hover .filled {
  height: 100%;
}

.example-2 .icon-content a[data-social="linkedin"] .filled,
.example-2 .icon-content a[data-social="linkedin"] ~ .tooltip {
  background-color: #0274b3;
}

.example-2 .icon-content a[data-social="github"] .filled,
.example-2 .icon-content a[data-social="github"] ~ .tooltip {
  background-color: #24262a;
}
.example-2 .icon-content a[data-social="instagram"] .filled,
.example-2 .icon-content a[data-social="instagram"] ~ .tooltip {
  background: linear-gradient(
    45deg,
    #405de6,
    #5b51db,
    #b33ab4,
    #c135b4,
    #e1306c,
    #fd1f1f
  );
}
.example-2 .icon-content a[data-social="youtube"] .filled,
.example-2 .icon-content a[data-social="youtube"] ~ .tooltip {
  background-color: #ff0000;
}



.scroller__inner {
    padding-block: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6rem;

    img {
        height: 60px;
    }
}

.scroller[data-animated="true"] {
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg,
            transparent,
            rgb(255, 247, 247) 40%,
            rgb(255, 255, 255) 60%,
            transparent);
    mask: linear-gradient(90deg, transparent, rgb(245, 245, 245) 40%, rgb(255, 255, 255) 60%, transparent);
}

.scroller[data-animated="true"] .scroller__inner {
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll var(--_animation-duration, 40s) var(--_animation-direction, forwards) linear infinite;
}

.scroller[data-direction="right"] {
    --_animation-direction: reverse;
}

.scroller[data-direction="left"] {
    --_animation-direction: forwards;
}

.scroller[data-speed="fast"] {
    --_animation-duration: 10s;
}

.scroller[data-speed="slow"] {
    --_animation-duration: 60s;
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 0.5rem));
    }
}

.quicksummary {
    padding: 60px 0;
    background-color: var(--accentcolor);
}

.quicksummary .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 20px;
}

.summaryitem {
    flex: 1;
    min-width: 150px; 
}

.summaryitem h3 {
    font-size: 2.5rem;
    font-family: var(--fontsecondary);
    margin-bottom: 0.25rem;
}

.summaryitem p {
    font-size: 1rem;
    color: var(--textdark);
}

.featuredwork {
    padding: 80px 0;
    background-color: #FFFFFF; 
}

.featuredwork h2 {
    text-align: center;
    margin-bottom: 40px;
}

.projectgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.projectcard {
    background-color: var(--accentcolor);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projectcard:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.placeholderimage {
    height: 200px;
    background-color: var(--primarycolor);
    color: var(--secondarycolor);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-family: var(--fontsecondary);
}
.placeholderimage.wide {
    height: 200px; 
}


.projectcard img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.cardcontent {
    padding: 20px;
}

.cardcontent h3 {
    color: var(--primarycolor);
}

.cardcontent p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #555;
}

.viewall {
    text-align: center;
    margin-top: 40px;
}

.footer {
    background-color: var(--primarycolor);
    color: var(--accentcolor);
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

.footer .sociallinks {
    margin-top: 10px;
}

.footer .sociallinks a {
    margin: 0 10px;
    
}

.pageheader {
    background-color: var(--primarycolor);
    color: var(--textcolor);
    padding: 60px 0;
    text-align: center;
}
.pageheader h1 {
    color: var(--textcolor);
    font-size: 3rem;
}
.pageheader p {
    font-size: 1.2rem;
    color: var(--accentcolor);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.aboutcontent {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.aboutgrid {
    display: grid;
    grid-template-columns: 1fr 2fr; 
    gap: 40px;
    align-items: flex-start; 
}

.aboutimage img {
    width: 100%;
    max-width: 350px; 
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    
    
}
.abstractprofile {
    width: 100%;
    max-width: 350px;
    height: 380px;
    background: linear-gradient(135deg, var(--secondarycolor) 0%, var(--primarycolor) 100%);
    border-radius: 8px;
}

.abouttext h2 {
    margin-bottom: 1.5rem;
}
.abouttext p {
    font-size: 1.05rem;
    color: #444;
}
.abouttext h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.skillslist {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.skillslist span {
    background-color: var(--secondarycolor);
    color: var(--primarycolor);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.journey {
    padding: 60px 0;
    background-color: var(--accentcolor);
}
.journey h2 {
    text-align: center;
    margin-bottom: 40px;
}
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after { 
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--secondarycolor);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}
.timelineitem {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}
.timelineitem::after { 
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    right: -8.5px;
    background-color: white;
    border: 3px solid var(--secondarycolor);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timelineitem:nth-child(odd) {
    left: 0;
}

.timelineitem:nth-child(even) {
    left: 50%;
}

.timelineitem:nth-child(even)::after {
    left: -6.5px;
}
.timelinecontent {
    padding: 15px 20px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
}
.timelinecontent h4 {
    color: var(--primarycolor);
}
.timelinecontent p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: #555;
}


.projects {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.portfoliogrid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 50px; 
}

.portfoliocard {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 30px;
    background-color: var(--accentcolor);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    align-items: center;
    overflow: hidden; 
}


@media (min-width: 768px) {
    .portfoliocard {
        grid-template-columns: 1fr 1.5fr; 
    }
    
    .portfoliocard:nth-child(even) {
        grid-template-columns: 1.5fr 1fr; 
    }
    .portfoliocard:nth-child(even) .cardimage {
        grid-column: 2 / 3; 
        grid-row: 1 / 2;
    }
    .portfoliocard:nth-child(even) .carddetails {
        grid-column: 1 / 2; 
        grid-row: 1 / 2;
    }
}


.cardimage img {
    width: 100%;
    height: auto;
    max-height: 350px; 
    object-fit: cover; 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.cardimage .placeholderimage.wide {
    height: 300px;
}


.carddetails h3 {
    font-size: 1.8rem;
    color: var(--primarycolor);
    margin-bottom: 10px;
}

.projectdescription {
    font-size: 1rem;
    color: #444;
    margin-bottom: 20px;
}

.projecttech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.projecttech span {
    background-color: var(--primarycolor);
    color: var(--secondarycolor);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-family: var(--fontsecondary);
}

.projectlinks .button {
    margin-right: 10px;
    margin-bottom: 10px;
}

.contactsection {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.contactlayout {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 40px;
}

@media (min-width: 992px) {
    .contactlayout {
        grid-template-columns: 1fr 1.5fr; 
    }
}

.contactinfo h2 {
    margin-bottom: 1.5rem;
}
.contactinfo p {
    color: #444;
    margin-bottom: 1.5rem;
}
.contactinfo ul {
    list-style: none;
    padding: 0;
}
.contactinfo ul li {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}
.contactinfo ul li strong {
    color: var(--primarycolor);
    margin-right: 8px;
}
.contactinfo ul li a {
    color: var(--primarycolor);
    font-weight: 500;
}
.contactinfo ul li a:hover {
    color: var(--secondarycolor);
    text-decoration: underline;
}

.contactform h2 {
    margin-bottom: 1.5rem;
}
.formgroup {
    margin-bottom: 1.5rem;
}
.formgroup label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primarycolor);
}
.formgroup input[type="text"],
.formgroup input[type="email"],
.formgroup textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--fontprimary);
    background-color: var(--accentcolor);
    color: var(--textdark);
}
.formgroup textarea {
    resize: vertical;
    min-height: 120px;
}
.formgroup input:focus,
.formgroup textarea:focus {
    outline: none;
    border-color: var(--secondarycolor);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
}
#formstatus {
    margin-top: 1rem;
    font-weight: 500;
}


@media (max-width: 992px) {
    .herocontent {
        flex-direction: column-reverse; 
        text-align: center;
    }
    .herotext {
        margin-top: 30px;
    }
    .herotext .greeting { font-size: 2.8rem; }
    .herotext .tagline { font-size: 1.3rem; }
    .heroimage { margin-bottom: 20px; }
    .abstractshape { width: 250px; height: 250px; }

    .aboutgrid {
        grid-template-columns: 1fr; 
    }
    .aboutimage {
        margin: 0 auto 30px auto; 
        max-width: 300px;
    }
    .abstractprofile { margin: 0 auto 30px auto; max-width: 300px; height: 330px; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .navlinks {
        display: none; 
        position: absolute;
        top: var(--navheight);
        left: 0;
        width: 100%;
        background-color: var(--primarycolor);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .navlinks.open {
        display: flex; 
    }
    .navlinks ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    .navlinks ul li {
        margin: 10px 0;
        margin-left: 0; 
    }
    .navlinks ul li a {
        font-size: 1.2rem;
    }
    .menubutton {
        display: block; 
    }

    .herotext .greeting { font-size: 2.5rem; }
    .herotext .tagline { font-size: 1.2rem; }

    .projectgrid {
        grid-template-columns: 1fr; 
    }

    .timeline::after {
        left: 20px; 
    }
    .timelineitem {
        width: 100%;
        padding-left: 50px; 
        padding-right: 10px;
    }
    .timelineitem:nth-child(even) {
        left: 0%; 
    }
    .timelineitem::after {
        left: 12.5px; 
    }

    .portfoliocard {
        grid-template-columns: 1fr !important; 
        padding: 20px;
    }
    .portfoliocard .cardimage,
    .portfoliocard:nth-child(even) .cardimage {
        grid-column: auto; 
        grid-row: auto;
    }
     .portfoliocard .carddetails,
    .portfoliocard:nth-child(even) .carddetails {
        grid-column: auto; 
        grid-row: auto;
    }
    .cardimage img { max-height: 250px; }
    .carddetails h3 { font-size: 1.5rem; }

    .contactlayout {
        grid-template-columns: 1fr; 
    }
}

@media (max-width: 480px) {
    .container { width: 95%; }
    h1 { font-size: 2rem; }
    .herotext .greeting { font-size: 2.2rem; }
    .herotext .tagline { font-size: 1.1rem; }
    .herotext .button {
        display: block; 
        margin-right: 0;
        margin-bottom: 15px;
    }
    .herotext .button:last-child { margin-bottom: 0; }
    .abstractshape { width: 200px; height: 200px; }

    .quicksummary .container {
        flex-direction: column;
        gap: 30px;
    }
    .summaryitem h3 { font-size: 2rem; }

    .pageheader h1 {font-size: 2.2rem;}
    .pageheader p {font-size: 1rem;}

    .portfoliocard { padding: 15px; }
}
