:root {
    --brandcol1 : #ab2626 ;
    --brandcol2 : #11141b ;
    --brandcol3 : #fff ;
}

/* Header & Navigation Styling */
header {
    display: flex;
    justify-content: space-between;
    height: 80px;
    width: 100%;
    background: rgba(17,20,27,0.75);
    color: var(--brandcol3);
    position: fixed;
    z-index: 1;
}

.logo {
    font-size: 50px;
    padding: 10px 10px 10px 80px;
    font-family: "Caveat"
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
}

nav li {
    display: inline-block;
    padding: 5px 20px;
}

header li a:hover {
    color: var(--brandcol1);
    font-size: 28px;
}

.socialicon {
    padding: 20px 80px 20px 20px;
    font-size: 25px;
}

.socialicon li {
    display: inline-block;
    padding: 5px 5px;
}

.mobnav { 
    display: none;
}

/* Hero Styling */
.hero {
    background-image: url("../images/hero_.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

.hero:hover {
    background-image: linear-gradient(rgba(17,20,27,0.5),rgba(171,38,38,0.5)),url(../images/hero_.webp);
}

h1 {
    font-size: 110px;
    height: 600px;
    width: 100%;
    color: var(--brandcol3);
    text-align: center;
    padding: 200px 0px 0px 0px;
}

.hero h3 {
    color:var(--brandcol3);
    font-size: 40px;
    width: 100%;
    text-align: center;
    position: absolute;
    top: 315px;
}

.hero h1, .hero h3 {
    opacity: 0;
    transition: 2s ease;
}

.hero:hover h1 {
    opacity: 1;
}

.hero:hover h3 {
    opacity: 1;
}

/* Sections Styling */

.aboutme, .portfolio, .resume, .contact{
    display: flex;
    margin: 0% 8% 0% 0%;
    padding: 4% 0% 4% 0%;
}

.aboutmer, .portfolior, .resumer, .contactr {
    border-left: 10px solid;
    width: 75%;
    display: flex;
    flex-wrap: wrap;
    margin-left: 0.1%;
    justify-content: space-evenly;
}

.aboutmel, .portfoliol, .resumel, .contactl {
    width: 25%;
    min-width: 500px;
    background-image: linear-gradient(rgba(17,20,27,0.5),rgba(171,38,38,0.5)),url(../images/hero_.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

h2 {
    font-size: 94px;
    text-align: right;
    padding: 0% 3%;
    color: var(--brandcol3);
    
}

h3 {
    font-family: serif;
    line-height: 1.5;
    font-size: 30px;
    padding: 0px 0px 0px 20px;
}

p {
    font-family: serif;
    line-height: 1.5;
    font-size: 25px;   
    padding: 0px 0px 0px 20px;
}

.portfoliochild {
    background-color: var(--brandcol1);
    color: var(--brandcol3);
    width: 393px;
    height: 330px;
    margin: 0% 1% 2% 1%;
    padding: 1%;
    transition: 1.5s ease;
}

.portfoliochild:hover {
    background: linear-gradient(rgba(17,20,27,1),rgba(171,38,38,1));
    transform: scale(1.025);
}

.portfoliochild p {
    display: none;
    transition: 1.5s ease;
}

.portfoliochild h3 {
    font-size: 46px;
}

.portfoliochild img {
    width: 366px;
    transition: 1.5s ease;
}

.popup {
    background-color: var(--brandcol1);
    color: var(--brandcol3);
    display: none;
    width: 50%;
    position: relative;
    padding: 1%;
    outline: 1000px solid rgba(0,0,0,0.5);
}

.popup img {
    width: 100%;
    margin: -1% 0% 0% 0%;
}

.popup h3 {
    padding: 0% 1%;
    font-size: 50px;
}

.popup p {
    padding: 0% 1% 4% 1%;
    font-size: 30px;
    text-decoration: none;
}

.exlinks {
    font-size: 30px;
    text-decoration: none;
    background-color: var(--brandcol3);
    color: var(--brandcol2);
    border-radius: 25px;
    padding: 1% 5% 1% 5%;
    margin: 1% 5% 0% 0%;
    display: inline-block;
}

.popup:target {
    display: flex;
    position: absolute;
    top: 8%;
    left: 25%;
    width: 50%;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
  
.resumerc {
    background-image: url(../images/Resume.PNG);
    background-position: top;
    background-repeat: no-repeat;
    background-size: 100%;
    height: 500px;
    width: 97%;
    border: solid 10px;
    margin: 0% 1%;
}

.resumer h3 {
    text-align: center;
    background: linear-gradient(rgba(17,20,27,0.5),rgba(171,38,38,0.5));
    height: 100%;
    font-size: 110px;
    line-height: 2;
    opacity: 0;
    transition: 1.5s ease;
}

.resumerc:hover h3 {
    opacity: 1;
}
  
.contactrc {
    border-radius: 5px;
    background-color: rgba(17,20,27,0.5);
    padding: 20px;
    width: 100%;
    height: 100%;
    margin: 0% 1%;
}
  
.f1 {
    float: left;
    width: 25%;
    margin-top: 6px;
  }
  
.f2 {
    float: left;
    width: 75%;
    margin-top: 6px;
}
  
.f3:after {
    content: "";
    display: table;
    clear: both;
}

input[type=text], input[type=email], textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}
  
label {
    display: inline-block;
    color: white;
}
  
input[type=submit] {
    background-color: #ab2626;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
}

@media screen and (max-width: 1080px) {

    .f1, .f2, input[type=submit] {
      width: 100%;
      margin-top: 0;
    }
    
}

/* Footer Styling */

footer {
    background-color: var(--brandcol2);
    color: var(--brandcol3);
}

footer .logo, .contactinfo, footer .socialicon, h6 {
    width: 100%;
    text-align: center;
    padding: 1% 0%;
}

footer h6, footer .socialicon {
    font-size: 30px;
}

footer .logo {
    font-size: 100px;
}

.rights, .rights p {
    width: 100%;
    text-align: center;
    font-size: 20px;
    background-color: var(--brandcol3);
    color: var(--brandcol2);
    height: 50px;
}

.rights p {
    padding: 10px;
}

/* Responsive Styling */

@media screen and (max-width: 1100px) {
    header {
        display: flex;
        justify-content: space-between;
        height: 80px;
        width: 100%;
        background: var(--brandcol2);
        color: #fff;
    }
    
    .logo {
        width: 100%;
        text-align: center;
        font-size: 53px;
    }
    
    nav {
        display: none
    }
    
    header .socialicon {
        display: none;
    }
    
    .drpdwnbtn {
        background-color: #11141b;
        color: white;
        font-size: 80px;
        border: none;
    }
      
    .mobnav {
        display: flex;
        color: #fff;
        font-size: 65px;
        padding: 5px 20px;
    }
      
    .mobnavdd {
        display: none;
        position: absolute;
        background-color: var(--brandcol2);
        z-index: 1;
        font-size: 25px;
        min-width: 641px;
        text-align: center;
        opacity: 0.7;
        width: 100%;
    }
      
    .mobnavdd a {
        color:var(--brandcol3);
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }
      
    .mobnav:hover .mobnavdd {
        display: block;
        top: 80px;
        right: -1px;
    }
      
    .mobnav:hover .drpdwnbtn {
        background-color: var(--brandcol2);
    }

    .mobnav:hover .mobnavdd {
        display: block;
    }

    .hero {
        background-image: linear-gradient(rgba(17,20,27,0.5),rgba(171,38,38,0.5)),url(../images/hero_.webp);
        width: 100%;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: fixed;
        position: relative;
    }

    .hero h1, .hero h3 {
        opacity: 1;
        transition: 2s ease;
    }

    .aboutme, .portfolio, .resume, .contact{
        display: flex;
        flex-wrap: wrap;
        margin: 0% 0% 0% 0%;
        padding: 4% 0% 4% 0%;
    }
    
    .aboutmer, .portfolior, .resumer, .contactr {
        border-top: 10px solid;
        border-left: none;
        min-width: none;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        margin-top: 0.5%;
        padding-top: 1%;
    }
    
    .aboutmel, .portfoliol, .resumel, .contactl {
        width: 100%;
        min-width: none;
        background-image: linear-gradient(rgba(17,20,27,0.5),rgba(171,38,38,0.5)),url(../images/hero_.webp);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: fixed;
    }

    .resumer h3 {
        text-align: center;
        background: linear-gradient(rgba(17,20,27,0.5),rgba(171,38,38,0.5));
        height: 100%;
        font-size: 110px;
        line-height: 2;
        opacity: 1;
        transition: 1.5s ease;
    }   
}

@media screen and (max-width: 550px) {
    h1 {
        font-size: 72px;
    }

    .aboutmer, .portfolior, .resumer, .contactr {
        border-top: 10px solid;
        border-left: none;
        min-width: none;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        margin-top: 0.5%;
        padding-top: 1%;
    }
    
    .aboutmel, .portfoliol, .resumel, .contactl {
        width: 100%;
        min-width: none;
        background-image: linear-gradient(rgba(17,20,27,0.5),rgba(171,38,38,0.5)),url(../images/hero_.webp);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: fixed;
    }


    .resumer h3 {
        text-align: center;
        background: linear-gradient(rgba(17,20,27,0.5),rgba(171,38,38,0.5));
        height: 100%;
        font-size: 70px;
        line-height: 3;
        opacity: 1;
        transition: 1.5s ease;
    }

    .portfolior {
        padding: 3% 0% 0% 15%;
    }
}