.box1 {
    position: relative;
    background-color: black;
    box-sizing: border-box;
    background-size: cover;
    width: 100%;
    background-position: center;
    height: auto;
    aspect-ratio: 16 / 9;
}

.backimage {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: top;
    background-image: url(ozel.png);
    background-size: cover;
    align-items: center;
    transition: background-image 0.25s;


}

body {
    margin: 0;
    display: flexbox;
    background-color: rgb(20, 20, 40);
    color: white;
    font-family: Arial, Helvetica, sans-serif;

    background-image: linear-gradient(to left bottom, #2e0404, #280310, #1f0816, #130b16, #0b0b12);
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    /*  rgb(30, 30, 50);
    rgb(120, 40, 40); */
    text-align: center;
    transition: background-image 0.3s ease, color 0.3s ease;
    z-index: -1000;

}

.toptopbar {
    width: 100%;
    height: 30px;
    background-color: rgba(30, 30, 50, 1);
    display: flex;
    align-items: center;
    float: left;
}

.topbar {
    width: 100%;
    height: fit-content;
    position: fixed;
    /* Replaces absolute */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(4px);
    display: block;
    /*     border-bottom: 3px solid; */
    /*     border-color: rgba(0,0,0,0.5);
    background-color: rgba(30, 30, 50,0.3); */
    text-align: left;
    background-image: linear-gradient(to left bottom, rgba(124, 0, 0, 0.3), rgba(104, 0, 37, 0.3), rgba(70, 3, 51, 0.3), rgba(32, 15, 47, 0.3), rgba(1, 6, 28, 0.3));
    max-height: 80px;
    transition: background-image 0.3s ease, color 0.3s ease;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.topbarimg {

    height: 75px;
    color: brown;
    margin-left: 50px;

}

.topbar button {
    height: 80px;
    float: right;
    width: 120px;
    background-color: rgba(255, 0, 0, 0.5);
    border: 0;
    color: white;
    font-size: larger;
    transition: background-color 0.2s;
    backdrop-filter: blur(2px);

}

.topbar button:hover {

    background-color: rgb(120, 0, 0);
    cursor: pointer;

}

#right {
    margin-right: 50px;
}

.pos1 {
    float: left;
    margin-left: 20px;
}

#leftbutton {
    width: 50px;
    height: 50px;
    margin-left: 20px;
    position: absolute;
    top: 50%;
    left: 0;
}

#rightbutton {
    width: 50px;
    height: 50px;
    position: absolute;
    right: 0;
    top: 50%;
    margin-right: 20px;
}

.lrbutton {
    border: 4px;
    border-radius: 50px;
    background-color: rgba(40, 40, 70, 0.3);
    font-size: larger;
    color: white;
    transition: background-color 0.3s;
}


.lrbutton:hover {
    background-color: rgba(20, 20, 50, 0.8);
}

.line {
    height: 6px;
    background-color: rgba(10, 10, 30, 1);
}

.header1 {
    margin-top: 100px;
    font-size: 3em;
}

.small-line {
    height: 6px;
    width: 300px;
    background-color: rgba(255, 0, 0, 0.5);
    margin-left: auto;
    margin-right: auto;

}

.p1 {
    font-size: 20px;
    font-style: italic;
    font-weight: lighter;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 100px;
}

.servicebuttons {
    display: inline-block;
    width: fit-content;
    height: fit-content;
}

.sbdiv {
    width: 180px;
    height: 180px;
    display: inline-block;
    text-align: center;
    font-size: 19px;
    font-weight: bold;
    margin: 30px;
    vertical-align: top;
    cursor: pointer;
}

.sbdiv img {
    width: 120px;
    height: 120px;
    transition: transform 0.3s;
}

.sbdiv img:hover {
    transform: scale(1.1);

}

.sbdiv p {
    width: fit-content;
    height: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.midpoint {
    width: 100%;
    height: fit-content;
    min-height: 150px;
    background: #780000;
    color: white;
    background: linear-gradient(90deg, rgba(120, 0, 0, 1) 0%, rgba(196, 55, 55, 1) 50%, rgba(120, 0, 0, 1) 100%);
    text-align: center;
}

.midpoint h1 {
    font-size: 2.5em;
    line-height: 150px;
}


.slider-container {
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: grab;
    user-select: none;
    /* Prevent text selection during drag */
}

.slider-container:active {
    cursor: grabbing;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.slide {
    min-width: 100%;
    /* Change to 33.33% for multiple items per view */
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: sans-serif;
    font-size: 2rem;
    font-weight: bold;
}

.modechange {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    z-index: 1001;
    /* Ensure it stays above other elements */
    transition: background-color 0.3s;
    text-align: center;
    display: inline-flex;
    justify-content: center;
}

.modechange:hover {
    background-color: rgba(255, 0, 0, 0.8);
}

.modechange:active {
    background-color: rgba(255, 0, 0, 1);
}

.modechangeimg {
    width: 50px;
    height: 50px;
}

body.lightmode {
    background: #ffffff;
    background: linear-gradient(316deg, rgba(255, 255, 255, 1) 12%, rgba(255, 255, 255, 1) 47%, rgba(255, 209, 209, 1) 100%);
    color: black;
    transition: background-image 0.3s ease, color 0.3s ease;
}

.topbar.lightmode {
    background: #ffffff;
    background: linear-gradient(316deg, rgba(255, 255, 255, 0.1) 12%, rgba(255, 255, 255, 0.1) 47%, rgba(255, 209, 209, 0.1) 100%);
}

.tpbtn.lightmode {
    background-color: rgb(156, 0, 0);
}

.line.lightmode {
    background-color: rgb(156, 0, 0);
}

.lrbutton.lightmode {
    background-color: rgba(255, 110, 110, 0.3);
}

.lrbutton.lightmode:hover {
    background-color: rgba(255, 110, 110, 0.8);
}

/* Ensure page background doesn't create horizontal scrollbars */
body {
    margin: 0;
    overflow-x: hidden;
}

/* Make carousel span full parent container width */
.owl-carousel {
    width: 100%;
}

/* Force each item to maintain a 100px x 100px footprint */
.owl-carousel .item {
    width: 100px;
    height: 100px;
    margin: 0;
    /* Centers the 100px box inside its grid column */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Prevent image distortion inside the 100px frame */
.owl-carousel .item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.item.lightmode {
    filter: invert(1);
}

.hamburgerbutton {
    height: 80px;
    float: right;
    width: 120px;
    background-color: rgba(255, 0, 0, 0.5);
    border: 0;
    color: white;
    font-size: larger;
    transition: background-color 0.2s;
    backdrop-filter: blur(2px);
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1001;
    /* Ensure it stays above other elements */
    display: none;
    /* Initially hidden */

}

.hamburgerbutton:hover {

    background-color: rgb(120, 0, 0);
    cursor: pointer;

}

#ham-overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1001;
    display: none;
    /* Initially hidden */
}

#ham-menu {
    width: 250px;
    height: 100%;
    position: fixed;
    top: 0;
    right: -250px;
    /* Start off-screen */
    background-color: rgba(30, 30, 50, 0.95);
    z-index: 1002;
    transition: right 0.3s ease;
    /* Smooth slide-in effect */
}

.footercontainer {
    width: 100%;
}

.footerdiv {
    width: 100%;
    min-height: 535px;
    height: auto;

    background-color: rgba(14, 14, 25, 1);

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto auto;

    padding: 40px 10%;
    box-sizing: border-box;

    text-align: center;
}

.fdiv1,
.fdiv2,
.fdiv3,
.fdiv4 {
    width: 100%;
    height: auto;
    box-sizing: border-box;
    padding: 15px;
}

.fdiv1 {
    grid-column: 1;
    grid-row: 1;
}

.fdiv2 {
    grid-column: 2;
    grid-row: 1;
}

.fdiv3 {
    grid-column: 3;
    grid-row: 1;
}

.fdiv4 {
    grid-column: 4;
    grid-row: 1;
}

.fdiv4 img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.name {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
}


#ham-menu button {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: larger;
    text-align: left;
    transition: background-color 0.2s;
}

#ham-menu button:hover {
    background-color: rgb(120, 0, 0);
    cursor: pointer;
}

#blogplaceholder {
    width: 100px;
    height: 400px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.small-line.lightmode {
    background-color: rgba(150, 0, 0, 1);
}

.parallaxcont {
    width: 100%;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.parallaximg {
    width: 100%;
    height: 500px;
    background-image: url('motherboard.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    filter: blur(10px) brightness(0.5);
    transform: scale(1.1);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;

}

.blogbutton {
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 50px;
    width: 200px;
    height: fit-content;
    background-color: rgba(150, 0, 0, 1);
    padding: 20px;
    color: white;
    font-size: larger;
    font-weight: bold;
    border: none;
    transition: background-color 0.3s;
}

.blogbutton:hover {
    background-color: rgba(130, 0, 0, 1);
    cursor: pointer;
}

.hizmetler {
    height: 80px;
    float: right;
    width: 120px;
    background-color: rgba(255, 0, 0, 0.5);
    border: 0;
    color: white;
    font-size: larger;
    transition: background-color 0.2s;
    backdrop-filter: blur(2px);
    text-align: center;
    justify-content: center;
    display: grid;
    grid-template-rows: 1fr;
    align-items: center;
}

.hizmetler:hover {
    background-color: rgb(120, 0, 0);
    cursor: pointer;
}

/* Dropdown Button */
.dropbtn {
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    float: right;
    position: relative;

}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background: #4d0000;
    background: linear-gradient(209deg, maroon 12%, rgba(201, 0, 0, 0.7) 100%);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    transform: translate(0, 80px);
}

/* Links inside the dropdown */
.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-image, 0.1s;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: maroon;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

.fdiv1 a,
.fdiv3 a,
.fdiv2 a,
.fdiv4 a {
    color: white;
    text-decoration: none;
    line-height: 1.8;
}

h5,
h6,
h4 {
    color: white;
}

.fil0 {

    background: rgb(255, 255, 255);
    min-width: 1155.45px;
    left: 0px;
    width: 1155.45px;
}

.himg {
    width: 50%;
    object-fit: cover;
    object-position: center;
}

.header1 img {
    vertical-align: middle;
    width: 80px;
}

.hmid {
    width: fit-content;
    height: fit-content;
    line-height: 1.2;
    margin: auto;
}

.hmid p {
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1.2;
}

.hmid h1 {
    font-size: 2.5em;
    line-height: 1.2;
}

.containsbuttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.midpointh {
    width: 100%;
    height: fit-content;
    min-height: 150px;
    background: #780000;
    color: white;
    background: linear-gradient(90deg, rgba(120, 0, 0, 1) 0%, rgba(196, 55, 55, 1) 50%, rgba(120, 0, 0, 1) 100%);
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.containsbuttons div h1 {
    height: fit-content;
    margin-top: auto;
    margin-bottom: auto;
}

.ekip {
    background-image: url(images/prodej_hardware_software-scaled.jpeg);
    background-position: center;
    background-size: auto;
    min-height: 500px;
    padding: 5px;

}

.hizmetback {
    background-color: rgba(0, 0, 0, 0.1);
    min-height: 300px;
    padding: 5px;

}

.header2 {
    margin-top: 100px;
    font-size: 2em;
}

.header3 {
    margin-top: 20px;
    font-size: 1.5em;
    margin-bottom: 0;

}

.header3 img {
    vertical-align: middle;
    width: 50px;
}

.header3 p {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
}

.hunit {
    display: inline-block;
    width: 45%;
    vertical-align: middle;
}

.hunit-img.lightmode {
    filter: invert(1);
}

.hunit a {
    color: red;
}

.linkhw {
    color: white;
    line-height: 1.8;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: underline;
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: rgba(255, 0, 0, 0.5);
    width: 400px;
    display: inline-block;

}

.linkhb {
    color: white;
    line-height: 1.8;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: underline;
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: rgba(100, 0, 0, 0.5);
    width: 400px;
    margin: 0;
    display: inline-block;

}

.partnerler-box {
    width: 75%;
    height: fit-content;
    min-height: 200px;
    background-color: rgba(0, 0, 0, 0);
    padding: 20px;
    display: inline-block;
    margin-bottom: 50px;

}

.partnerunit {
    display: inline-block;
    width: 100px;
    aspect-ratio: 1 / 1;
    background-color: rgba(255, 0, 0, 0.5);
    padding: 20px;
    margin: 20px;
    transition: filter 0.3s;
}

.partnerunit img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wrapsall {
    display: inline-block;
    width: fit-content;
    height: fit-content;

}

.partnerunit.darken:hover {
    filter: brightness(0.5);
}

.social-icon {
    width: 20px;
    height: 20px;
    margin-left: 5px;
    margin-right: 5px;
    vertical-align: middle;
}
.iletisim-form
{
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
.input1
{
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.input2
{
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    min-height: 250px;
    height:fit-content;
}
.he4.lightmode
{
    color: black;
}

/* 1. Container controls the actual space the iframe takes up on your page */
.iframe-container {
  width: 280px;          /* Desired width on screen */
    aspect-ratio: 16 / 9; /* Maintain aspect ratio */
  border: 1px solid #ccc; 
  text-align: center;
  display: inline-block;
  overflow: hidden;      /* Ensures the scaled iframe doesn't overflow */
}

/* 2. Style the iframe to render at full resolution and scale down */
.iframe-container iframe {
  width: 1920px;         /* Target rendering width (e.g., 1080p screen) */
  height: 1080px;        /* Target rendering height */
  border: none;

  
  /* Make it completely unclickable */
  pointer-events: none;  
  
  /* Scale it down (480px / 1920px = 0.25) */
  transform: scale(0.09375); /* Adjust this scale factor based on your target width */
  transform-origin: top left; /* Ensures it scales from the corner, not the center */
}

.referbox
{
    width: fit-content;
    display: inline-block;

}
/* Referanslar page additions — can be appended to style.css instead */

.reffilters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0 40px 0;
}

.reffilter {
    background-color: rgba(255, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 12px 28px;
    font-size: larger;
    backdrop-filter: blur(2px);
    transition: background-color 0.2s;
}

.reffilter:hover {
    background-color: rgb(120, 0, 0);
    cursor: pointer;
}

.reffilter.active {
    background-color: rgba(150, 0, 0, 1);
}

.refgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    width: 80%;
    max-width: 1400px;
    margin: 0 auto 50px auto;
}

.refcard {
    background-color: rgba(0, 0, 0, 0.25);
    border-bottom: 6px solid rgba(255, 0, 0, 0.5);
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, background-color 0.3s;
}

.refcard[hidden] {
    display: none;
}

.refcard:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.refimg {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.3);
}

.refimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.4s;
}



.refcard h3 {
    margin: 20px 15px 10px 15px;
    font-size: 1.2em;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refcard h3 a {
    color: inherit;
    text-decoration: none;
}

.reftag {
    display: inline-block;
    font-size: 0.9em;
    padding: 3px 12px;
    margin-bottom: 15px;
    background-color: rgba(255, 0, 0, 0.5);
    color: white;
}

.refcard:not(:has(.reftag)) h3 {
    margin-bottom: 40px;
}

.refbtn {
    margin-top: auto;
    background-color: rgba(150, 0, 0, 1);
    color: white;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 30px;
    transition: background-color 0.3s;
}

.refbtn:hover {
    background-color: rgba(130, 0, 0, 1);
}

/* light mode (body gets .lightmode from your toggle) */
body.lightmode .refcard {
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

body.lightmode .refcard:hover {
    
    background-color: rgba(255, 235, 235, 1);
}

body.lightmode .reffilter {
    background-color: rgb(156, 0, 0);
}

body.lightmode .reffilter:hover,
body.lightmode .reffilter.active {
    background-color: rgb(120, 0, 0);
}

@media (max-width: 1250px) {
    .refgrid {
        width: 90%;
    }
}

@media (max-width: 600px) {
    .refgrid {
        grid-template-columns: 1fr;
        width: 92%;
    }
}


@media (max-width: 1250px) {

    .linkhb {
        width: 100vw;
    }

    .linkhw {
        width: 100vw;
    }

    .containsbuttons {
        display: block;
    }

    .hunit {
        display: inline-block;
        width: 100%;
        vertical-align: middle;
    }

    .hamburgerbutton {
        display: block;
        /* Reveal hamburger icon */
    }

    .topbar button {
        display: none;
        /* Hide standard buttons */
    }

    .box1 {
        padding-top: 80px;
    }

    #backpadding {
        display: block;
    }

    #leftbutton {
        width: 50px;
        height: 50px;
        margin-left: 20px;
        position: absolute;
        top: 50%;
        left: 0;
    }

    #rightbutton {
        width: 50px;
        height: 50px;
        position: absolute;
        right: 0;
        top: 50%;
        margin-right: 20px;
    }

    .footerdiv {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 40px 8%;
    }

    .fdiv1 {
        grid-column: 1;
        grid-row: 1;
    }

    .fdiv2 {
        grid-column: 2;
        grid-row: 1;
    }

    .fdiv3 {
        grid-column: 1;
        grid-row: 2;
    }

    .fdiv4 {
        grid-column: 2;
        grid-row: 2;
    }

    .name {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}

@media (max-width: 600px) {
    .footerdiv {
        grid-template-columns: 1fr;
        padding: 40px 30px;
        text-align: center;
    }

    .fdiv1,
    .fdiv2,
    .fdiv3,
    .fdiv4,
    .name {
        grid-column: 1;
        grid-row: auto;
    }

    .fdiv1,
    .fdiv2,
    .fdiv3,
    .fdiv4 {
        padding: 20px 0;
    }

    .fdiv4 img {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }
}