
/* CSS Variables for theming */
:root {
    /* Dark mode (default) */
    --bg-primary: rgb(8, 8, 52);
    --bg-secondary: rgb(19, 19, 68);
    --text-primary: white;
    --text-secondary: white;
    --accent-color: rgb(141, 63, 214);
    --cyan-color: #86FFFF;
    --hover-bg: black;
    --input-bg: rgb(19, 19, 68);
    --border-color: #7543db;
}

/* Light mode variables - Sleek & Tech Palette */
:root.light-mode {
    --bg-primary: #E9ECEF;        /* cool light gray */
    --bg-secondary: #F4F6F8;      /* surface */
    --text-primary: #1C1C1E;      /* main text */
    --text-secondary: #5A5E66;    /* muted text */
    --accent-color: #0D6EFD;      /* Bootstrap blue accent */
    --cyan-color: #0AA5A5;        /* teal for CTAs/links */
    --hover-bg: #DEE2E6;          /* slightly darker gray for hover */
    --input-bg: #F4F6F8;          /* surface color for inputs */
    --border-color: #0AA5A5;      /* teal borders */
}

*{
    margin: 0;
    padding: 0;
}

body{
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}
nav{
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 80px;
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

nav ul{
    display: flex;
    justify-content: center;
}

.right{
    display: flex;
    list-style: none;
}

main hr{
    background-color: var(--border-color);
    height: 1px;
    margin: 10px 40px;
    transition: background-color 0.3s ease;
}

.left{
    font-size: 1.5rem;
    color: var(--text-primary);
}

nav ul li{
    list-style: none;
    margin:0 23px;
}

nav ul li a{
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

nav ul li a:hover{
    color: var(--accent-color);
    font-size: 1.2rem;
}
.firstSection{
    display: flex;
    justify-content:space-around ;
    align-items: center;
    margin: 80px 0;
}

.firstSection > div{
    width: 35%;
}

.leftSection{
    font-size: 3rem;
    color: var(--text-primary);
}

.rightSection{
    display: flex;
    justify-content: center;
    align-items: center;
}   

.propic{
    width: 390px;
    height: 390px;
    border-radius: 50%;
    transition: filter 0.3s ease;
}

/* Light mode image filter */
:root.light-mode .propic {
    filter: brightness(1.1) contrast(1.1);
}

.purple{
    color: var(--accent-color);
}

ul a{
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

ul a:hover{
    color: var(--accent-color);
}
.secondSection{
    max-width: 80vw ;
    margin: auto;
    font-size: 1.1rem;
    height: 80vh;
    color: var(--text-primary);
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: .2rem solid var(--cyan-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--cyan-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: all 0.3s ease;
}

.social-media a svg {
    fill: var(--cyan-color);
    transition: fill 0.3s ease;
}

.social-media a:hover{
    background-color: var(--cyan-color);
    transform: scale(1.1);
}

.social-media a:hover svg {
    fill: var(--bg-secondary);
}

.Cv{
    font-size: 1.7rem;
    text-decoration:none;
    color: var(--cyan-color);
    background-color: var(--hover-bg);
    padding: 9px;
    border-radius: 10px;
    border: 2px solid var(--cyan-color);
    transition: all 0.3s ease;
}

.Cv:hover{
    background-color: var(--cyan-color);
    color: var(--bg-secondary);
    transform: scale(1.05);
}

.about{
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 5rem;
    margin: 80px;
}

.heading{
    text-align: center;
    font-size: 4.25rem;
    color: var(--text-primary);
}

.about-content h2{
    text-align: left;
    line-height: 1.2;
    color: var(--text-primary);
}

.about-content h3{
    font-size: 2.4rem;
    color: var(--text-secondary);
}

.about-content p{
    font-size: 1.6rem;
    margin: 2rem 0 0;
    color: var(--text-secondary);
}

.services h2{
    margin-bottom: 5rem;
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.services-container .services-box{
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    background-color: var(--bg-secondary);
    border: .2rem solid transparent;
    transition: all 0.5s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Light mode shadow */
:root.light-mode .services-container .services-box {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.services-container .services-box:hover{
    border-color: var(--cyan-color);
    transform: scale(1.02);
}

.services-box h3{
    font-size: 2rem;
    color: var(--text-primary);
}

.services-box p{
    color: var(--text-secondary);
}
.demo{
    width: 390px;
    height: auto;
    border-radius: 0%;
    transition: filter 0.3s ease;
}

/* Light mode image filter for project images */
:root.light-mode .demo {
    filter: brightness(1.05) contrast(1.05);
}

.portfolio h2{
    margin-bottom: 4rem;
    color: var(--text-primary);
}

.portfolio-container{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    align-items: center;
    gap: 2.5rem;
}

.portfolio-box {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.portfolio-box:hover {
    transform: scale(1.02);
}

.portfolio-layer {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.portfolio-layer h4 {
    color: var(--text-primary);
}

.portfolio-layer p {
    color: var(--text-secondary);
}

.contact h2{
    margin-bottom:3rem ;
    color: var(--text-primary);
}

.contact form{
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: space-around;
}

.contact form .input-box input{
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-primary);
    background-color: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: .8rem;
    margin: .7rem 0;
    transition: all 0.3s ease;
}

.contact form .input-box input:focus{
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(141, 63, 214, 0.3);
}

.contact textarea{
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-primary);
    background-color: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: .8rem;
    margin: .7rem 0;
    transition: all 0.3s ease;
    resize: vertical;
}

.contact textarea:focus{
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(141, 63, 214, 0.3);
}

.contact form .input-box input{
    width: 49%;
}

 
.submitB {
  background-color: #c2fbd7;
  border-radius: 100px;
  box-shadow: rgba(44, 187, 99, .2) 0 -25px 18px -14px inset,rgba(44, 187, 99, .15) 0 1px 2px,rgba(44, 187, 99, .15) 0 2px 4px,rgba(44, 187, 99, .15) 0 4px 8px,rgba(44, 187, 99, .15) 0 8px 16px,rgba(44, 187, 99, .15) 0 16px 32px;
  color: green;
  cursor: pointer;
  display: inline-block;
  font-family: CerebriSans-Regular,-apple-system,system-ui,Roboto,sans-serif;
  padding: 7px 20px;
  text-align: center;
  text-decoration: none;
  transition: all 250ms;
  border: 0;
  font-size: 16px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.submitB:hover {
  box-shadow: rgba(44,187,99,.35) 0 -25px 18px -14px inset,rgba(44,187,99,.25) 0 1px 2px,rgba(44,187,99,.25) 0 2px 4px,rgba(44,187,99,.25) 0 4px 8px,rgba(44,187,99,.25) 0 8px 16px,rgba(44,187,99,.25) 0 16px 32px;
  transform: scale(1.05) rotate(-1deg);
}



@media screen and (max-width: 768px) {
  nav {
    flex-direction: column;
    height: auto;
    padding: 10px 0;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  nav ul li {
    margin: 10px 0;
  }

  .firstSection {
    flex-direction: column;
    margin: 40px 10px;
    gap: 30px;
  }

  .firstSection > div {
    width: 100%;
    text-align: center;
  }

  .leftSection {
    font-size: 2rem;
  }

  .propic {
    width: 250px;
    height: 250px;
  }

  .about {
    flex-direction: column;
    margin: 40px 10px;
    gap: 30px;
  }

  .about-content h2 {
    text-align: center;
  }

  .services-container {
    flex-direction: column;
    gap: 2rem;
  }

  .portfolio-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact form .input-box {
    flex-direction: column;
  }

  .contact form .input-box input {
    width: 100%;
  }

  .heading {
    font-size: 2.5rem;
  }

  .about-content h3,
  .services-box h3 {
    font-size: 1.5rem;
  }

  .about-content p,
  .contact form input,
  .contact textarea {
    font-size: 1.2rem;
  }

  .Cv {
    font-size: 1.2rem;
    padding: 6px;
  }
}



