/* General Styles */
html, body {
    overflow-x: hidden !important;
    max-width: 100%;
}

body {
	background: #000000;
	color: #999;
	font-family: 'Raleway', sans-serif;
	font-size: 16px;
	font-weight: 400;
}

/* start all section overrides */
#home, #home .fp-slide, #home .fp-tableCell,
#work, #work .fp-slide, #work .fp-tableCell,
#about, #about .fp-slide, #about .fp-tableCell,
#contact, #contact .fp-slide, #contact .fp-tableCell,
#portfolio, #portfolio .fp-slide, #portfolio .fp-tableCell,
footer, footer .fp-slide, footer .fp-tableCell {
    height: auto !important;
}
/* end all section overrides */

/* start all heading */
h1,h2,h3,h4,h5 {
    color: #ffffff;
    font-weight: bold;
}
/* end all heading */

/* start all section padding */
#work, #about, #portfolio, #contact {
    padding-top: 100px;
    padding-bottom: 120px;
}
/* end all section padding */

/* start simpletextrotator (Required for the "Data Analyst..." animation) */
.rotating {
  display: inline-block;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  -o-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-transform: rotateX(0) rotateY(0) rotateZ(0);
  -moz-transform: rotateX(0) rotateY(0) rotateZ(0);
  -ms-transform: rotateX(0) rotateY(0) rotateZ(0);
  -o-transform: rotateX(0) rotateY(0) rotateZ(0);
  transform: rotateX(0) rotateY(0) rotateZ(0);
  -webkit-transition: 0.5s;
  -moz-transition: 0.5s;
  -ms-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
  -webkit-transform-origin-x: 50%;
}

.rotating.flip {
  position: relative;
}

.rotating .front, .rotating .back {
  left: 0;
  top: 0;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  -o-backface-visibility: hidden;
  backface-visibility: hidden;
}

.rotating .front {
  position: absolute;
  display: inline-block;
  -webkit-transform: translate3d(0,0,1px);
  -moz-transform: translate3d(0,0,1px);
  -ms-transform: translate3d(0,0,1px);
  -o-transform: translate3d(0,0,1px);
  transform: translate3d(0,0,1px);
}

.rotating.flip .front {
  z-index: 1;
}

.rotating .back {
  display: block;
  opacity: 0;
}

.rotating.spin {
  -webkit-transform: rotate(360deg) scale(0);
  -moz-transform: rotate(360deg) scale(0);
  -ms-transform: rotate(360deg) scale(0);
  -o-transform: rotate(360deg) scale(0);
  transform: rotate(360deg) scale(0);
}

.rotating.flip .back {
  z-index: 2;
  display: block;
  opacity: 1;
  -webkit-transform: rotateY(180deg) translate3d(0,0,0);
  -moz-transform: rotateY(180deg) translate3d(0,0,0);
  -ms-transform: rotateY(180deg) translate3d(0,0,0);
  -o-transform: rotateY(180deg) translate3d(0,0,0);
  transform: rotateY(180deg) translate3d(0,0,0);
}

.rotating.flip.up .back {
  -webkit-transform: rotateX(180deg) translate3d(0,0,0);
  -moz-transform: rotateX(180deg) translate3d(0,0,0);
  -ms-transform: rotateX(180deg) translate3d(0,0,0);
  -o-transform: rotateX(180deg) translate3d(0,0,0);
  transform: rotateX(180deg) translate3d(0,0,0);
}

.rotating.flip.cube .front {
  -webkit-transform: translate3d(0,0,100px) scale(0.9,0.9);
  -moz-transform: translate3d(0,0,100px) scale(0.85,0.85);
  -ms-transform: translate3d(0,0,100px) scale(0.85,0.85);
  -o-transform: translate3d(0,0,100px) scale(0.85,0.85);
  transform: translate3d(0,0,100px) scale(0.85,0.85);
}

.rotating.flip.cube .back {
  -webkit-transform: rotateY(180deg) translate3d(0,0,100px) scale(0.9,0.9);
  -moz-transform: rotateY(180deg) translate3d(0,0,100px) scale(0.85,0.85);
  -ms-transform: rotateY(180deg) translate3d(0,0,100px) scale(0.85,0.85);
  -o-transform: rotateY(180deg) translate3d(0,0,100px) scale(0.85,0.85);
  transform: rotateY(180deg) translate3d(0,0,100px) scale(0.85,0.85);
}

.rotating.flip.cube.up .back {
  -webkit-transform: rotateX(180deg) translate3d(0,0,100px) scale(0.9,0.9);
  -moz-transform: rotateX(180deg) translate3d(0,0,100px) scale(0.85,0.85);
  -ms-transform: rotateX(180deg) translate3d(0,0,100px) scale(0.85,0.85);
  -o-transform: rotateX(180deg) translate3d(0,0,100px) scale(0.85,0.85);
  transform: rotateX(180deg) translate3d(0,0,100px) scale(0.85,0.85);
}
/* end simpletextrotator */

/* start home */       
#home {
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 140px;
    text-align: center;
}
#home video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
    transition: 1s opacity;
}
#home .container {
    position: relative;
    z-index: 3;
}
.home-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}
#home h1 {
    border: 2px solid #0059ff;
    color: #0059ff;
    display: inline-block;
    letter-spacing: 6px;
    padding: 25px 35px;
    margin: 30px 0;
}
#home h2 {
    padding-bottom: 10px;
}
#home .btn {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    width: 180px;
    height: 60px;
    margin-top: 40px;
    padding-top: 18px;
    transition: all 0.4s ease-in-out;
}
#home .btn:hover {
    background: #0059ff;
    border-color: transparent;
}
/* end home */

/* start work */
#work {
    background: #1a1a1a;
}
#work h2 {
    text-align: center;
}
#work .media {
    margin-top: 30px;
}
#work .media .fa {
    border: 2px solid #ffffff;
    border-radius: 50%;
    color: #0059ff;
    font-size: 24px;
    margin-right: 24px;
    width: 60px;
    height: 60px;
    line-height: 55px;
    text-align: center;
    vertical-align: middle;
    transition: all 0.4s ease-in;
}
#work .media .fa:hover {
    background: #ffffff;
    cursor: pointer;
}
#work .media .media-heading {
    font-weight: 600;
    font-size: 20px;
    padding-bottom: 10px;
}
/* end work */

/* start about */
#about {
    /* 1. REQUIRED: Locks the video and overlay inside this section */
    position: relative;
    
    /* 2. REQUIRED: Cuts off the edges of the video so it doesn't spill out */
    overflow: hidden; 
    
    /* Keep existing styles */
    background: url('../images/aboutme.jpg'); /* Fallback image */
    background-size: cover;
    background-repeat: no-repeat;
    padding-top: 120px;
    padding-bottom: 140px;
    width: 100%;
}
#about video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
    transition: 1s opacity;
}
#about .container {
    position: relative;
    z-index: 3;
}
.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}
/* Profile Picture - Only inside #about */
#about .profile-pic {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid transparent;
    background: 
    /* Inner solid color, matches page background */
    linear-gradient(white, white) padding-box, 
    /* Outer gradient color, the actual "border" */
    linear-gradient(to right, #0059ff, #00c583) border-box;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
#about h4 {
    padding: 15px 0;
    color: #0059ff;
}

/* --- SKILL CARD STYLES --- */
.skill-card {
    background-color: rgba(43, 49, 63, 0.548); 
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    height: 100%;
}

#about .skill-card h4 {
    color: #ffffff; 
    font-weight: 700;
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-bottom: 1px solid #3e4c66;
    padding-bottom: 10px;
}

.skill-card ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.skill-card li {
    color: #cccccc;
    margin-bottom: 8px;
}

/* --- TECH ICONS --- */
.tech-icons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; 
}

.tech-icon-wrapper {
    text-align: center;
    width: 60px; 
}

.tech-icon-wrapper i {
    font-size: 32px; 
    display: block;
    margin-bottom: 5px;
    transition: transform 0.2s;
}

.tech-icon-wrapper i:hover {
    transform: scale(1.2); 
    color: #00d2ff;
}

.tech-icon-wrapper span {
    font-size: 10px;
    color: #cccccc;
    display: block;
}
/* end about */

/* start portfolio */
#portfolio {
    background: #1a1a1a;
    text-align: center;
}
#portfolio h2 {
    padding-bottom: 30px;
}
.portfolio-card {
    position: relative;
    background-color: rgb(255, 255, 255);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    margin-bottom: 30px; /* Spacing between rows */
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures cards in the same row match height */
    text-decoration: none; /* Removes underline if wrapping with <a> */
}

/* The Gradient Overlay (Hidden by default) */
.portfolio-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient: Purple to Pink */
    background: linear-gradient(135deg, #0059ff 0%, #00c583 100%);
    opacity: 0;
    z-index: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none; /* Lets clicks pass through to the link */
}

/* Hover Effects */
.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(132, 169, 238, 0.4);
}

.portfolio-card:hover::before {
    opacity: 1;
}

/* Image Container */
.card-image-box {
    position: relative;
    z-index: 1;
    height: 220px; /* Fixed height is still needed for grid alignment */
    width: 100%;
    background-color: #fff; /* White background to match the card */
    overflow: hidden;
    /* Removed padding: 20px; */
    /* Removed display: flex; (Not needed for cover images) */
}

/* The Image Itself - Fills the container completely */
.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the image fill the box without stretching */
    object-position: center; /* Centers the image */
    transition: transform 0.4s ease;
}

/* Scale effect on hover remains */
.portfolio-card:hover .card-image-box img {
    transform: scale(1.05);
}

/* Content Container */
.card-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    text-align: center;
    background: transparent;
}

/* Typography */
.card-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
    transition: color 0.3s ease;
}

.card-content h5 {
    font-size: 14px;
    font-weight: 600;
    color: #0059ff; /* Pink subtitle */
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

/* Text Color Change on Hover */
.portfolio-card:hover .card-content h5 {
    color: rgb(9, 36, 85); /* Dark purple on hover */
}

/* Helper to make the whole card clickable properly */
.card-link-wrapper {
    text-decoration: none;
    display: block;
    height: 100%;
}

/* 7. Text Color Changes on Hover */
.portfolio-card:hover .card-subtitle {
    color: rgb(9, 36, 85); /* Dark purple for contrast on hover */
}
/* end portfolio */

/* start contact */
#contact address {
    padding-bottom: 18px;
}
#contact .contact-title {
    font-size: 24px;
    font-weight: bold;
    padding-bottom: 20px;
    color: #ffffff;
}
#contact .fa {
    border: 2px solid #ffffff;
    border-radius: 50%;
    color: #0059ff;
    width: 50px;
    height: 50px;
    line-height: 45px;
    text-align: center;
    margin-right: 20px;
}
#contact .form-control {
    background: transparent;
    border: 2px solid #999;
    border-radius: 0;
    box-shadow: none;
    color: #ffffff;
    margin-bottom: 20px;
}
#contact input {
    height: 50px;
}
#contact input[type="submit"] {
    background: #0059ff;
    border: 2px solid transparent;
    color: #ffffff;
    font-weight: bold;
    transition: all 0.4s ease-in-out;
}
#contact input[type="submit"]:hover {
    background: #ffffff;
    color: #0059ff;
}
/* end contact */

/* start footer */
footer {
    border-top: 1px solid #090909;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 20px;
}
footer hr {
    width: 100px;
}
/* end footer */

/* start social icon */
.social-icon {
    position: relative;
    padding: 0;
    margin: 0;
}
.social-icon li {
    display: inline-block;
    list-style: none;
}
.social-icon li a {
    border-radius: 50%;
    color: #606060;
    text-decoration: none;
    transition: all 0.4s ease-in-out;
    text-align: center;
    margin-right: 10px;
}
.social-icon li a:hover {
    color: #0059ff;
}
/* end social icon */