 /* ===== RESET AND BASE STYLES ===== */

:root {
    --rnk_black: #181515; 
    --rnk_gray: #72686A;
    --rnk_white: #f5e3e0;
    --rnk_gold: #B8956A;
    --rnk_purple: #4A3B5C;
    --rnk_green: #5D6B51;
    --rnk_beige: #998968;
    --rnk_earth: #835c42;
    --rnk_brown_earth: #2b2c1e;
    --rnk_red: #82231f;
    /* Base size */
    font-size: 16px;

    /* Modular scale applied responsively */
    --fs-body: clamp(1rem, 1vw + 0.8rem, 1.125rem);   /* 16px → 18px */
    --fs-h6: clamp(1.2rem, 1vw + 1rem, 1.375rem);    /* 20px → 22px */
    --fs-h5: clamp(1.563rem, 1.2vw + 1.1rem, 1.75rem);/* 25px → 28px */
    --fs-h4: clamp(1.953rem, 1.5vw + 1.2rem, 2.25rem);/* 31px → 36px */
    --fs-h3: clamp(2.441rem, 2vw + 1.4rem, 2.75rem);  /* 39px → 44px */
    --fs-h2: clamp(3.052rem, 3vw + 1.5rem, 3.5rem);   /* 49px → 56px */
    --fs-h1: clamp(3.815rem, 4vw + 1.5rem, 4.5rem);   /* 61px → 72px */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}



body {
    
    background-color: #040404;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;

    justify-content: center;
    align-items: center;
    flex-direction: column;

    font-family: "Cormorant Garamond", "Times New Roman", Roboto, sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: var(--fs-body);
}

h1 {
    font-size: var(--fs-h1); 
    line-height: 1.2; 
}
h2 { font-size: var(--fs-h2); line-height: 1.25; font-weight: 700;}
h3 { font-size: var(--fs-h3); line-height: 1.3; }
h4 { font-size: var(--fs-h4); line-height: 1.35; }
h5 { font-size: var(--fs-h5); line-height: 1.4; }
h6 { font-size: var(--fs-h6); line-height: 1.4; }

/* ===== HEADER STYLES ===== */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0);
    /*backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);*/
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.header:hover {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}


.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);

}

.logo-icon {
    width: 2.7rem;   /* scales with font size */
    height: auto;   /* keeps aspect ratio */
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}


.logo-text h1{
    font-family: "Spectral";
    font-size: var(--fs-h5);
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}
/*
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--rnk_gold), var(--rnk_black));
    transition: width 0.2s ease;
}*/

.nav-link:hover {
    color: #f1bf74;
    text-shadow: 0 0 8px var(--rnk_gold);
    transform: scale(1.1);
}

.nav-link:hover::after {
    width: 100%;
}


/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: var(--rnk_black);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/*
.btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}*/

.btn-primary {
    background: var(--rnk_black);
    color: var(--rnk_white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: var(--rnk_earth);
    transform: translateY(-2px);
    box-shadow: 0 0px 30px var(--rnk_gold);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.5rem;
}

.btn-full {
    width: 100%;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav .nav-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav .nav-link:last-of-type {
    border-bottom: none;
}

.mobile-nav .btn {
    margin-top: 1rem;
    width: 100%;
}

/* ===== STATIC BACKGROUND SYSTEM ===== */
.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -10;
    transition: opacity 0.3s ease;
}

.static-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./runik_wp.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* ==== VIDEO === */
/* Video Section */
.video-section {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -10;
    overflow: hidden;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem .5rem;
    max-width: 1400px;
    margin: 0 auto;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 10;
}

.control-buttons {
  display: flex;
  gap: 0.75rem;
}

.control-btn {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.control-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}


.video-info {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

.video-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
}

.video-subtitle {
  font-size: 0.75rem;
  color: #d1d5db;
  margin: 0;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0rem 0rem 0rem;
    position: relative;
    overflow: hidden;
}

/* Hero overlay for better text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 70%,
        rgba(0, 0, 0, 0.6) 85%,
        rgba(0, 0, 0, 0.9) 100%
    );
    z-index: 1;
}

/* Gradient overlay for smooth transition to black */
.hero-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 30%,
        rgba(0, 0, 0, 0.7) 70%,
        rgba(0, 0, 0, 1) 100%
    );
    z-index: 2;
}

.hero-content {
    max-width: 1000px;
    width: 100%;
    margin-bottom: 4rem;
    position: absolute;
    z-index: 3;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.text-gray {
    color: rgba(255, 255, 255, 0.7);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: -10rem;
}

.hero-image {
    width: 100%;
    max-width: 700px;
    aspect-ratio: 16/9;
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 3;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.hero-image iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}


/* ===== SECTION STYLES ===== */
.section {
    padding: 0 0 1rem;
    background: #040404;
    position: relative;
    z-index: 5;
    justify-content: center;
}

.section-alt {
    background: linear-gradient(0deg, #0f0c13, var(--rnk_black));
}

.container {
    font-size: inherit;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 1rem 1.5rem;
}

.section-header {
    text-align: center;
    padding: 1rem 0rem;
    margin-bottom: 0rem;
}

.section-header h2 {
    color: var(--rnk_white);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-style: italic;
    color: #9ca3af;

    line-height: 1.6;
    font-size: var(--fs-body);
}


.section-header-alt h2 {
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--rnk_black);
}

.section-content{
    align-items: center;
    text-align: justify;
    text-justify: inter-word;
    font-size: 1.5rem;
    padding: 0 0 3rem;
}

.section-divider {
    background: linear-gradient(
        to top,
        transparent 0%,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 30%,
        rgba(0, 0, 0, 0.7) 70%,
        rgba(0, 0, 0, 1) 100%
    );
}

.section-sign{
    padding: 1rem 1rem inherit;
    display: flex;
    justify-content: center;
}

.section-sign h6{
    color: var(--rnk_gold);
    font-family: "Homemade Apple", cursive;
    font-weight: 400;
    font-style: normal;
    text-shadow: 0 0 8px #e5b982;
}

.section p{
    font-size: var(--fs-body);
}

.section-video{
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;

}


.section-gallery{
    padding: 2rem;
}
/* ===== GRID LAYOUTS ===== */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* ===== CARD STYLES ===== */
.card {
    background: var(--rnk_black);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(55, 65, 81, 0.5);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    border-color: var(--rnk_gold);
    transform: translateY(-4px);
    box-shadow: 0 0 1rem #e5b982;
    text-shadow: 0 0 0.5rem #e5b982;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.card p {
    color: #9ca3af;
    line-height: 1.6;
}

/* ===== PROJECT CARDS ===== */
.wrapper {
  position: relative;
  margin: 20px 0;
  align-items: center;
  display: flex;
  flex-direction: row;
  transition: all 200ms ease-in-out;
}

.image-wrapper {
  height: 300px;
  width: 100%;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  transition: all 500ms ease-in-out;
}

img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  
  transition: all 500ms ease-in-out;
}

.book-design-image {
  object-position: center;
}

.header-wrapper {
    display: flex;
    flex-direction: column;
    position: absolute;
    min-width: 150px;
    left: 5%;
    top: 50%;
    transition: all 500ms ease-in-out;
    overflow: hidden;
  
}
.header-wrapper h3{
    color: var(--rnk_white);
    text-shadow: 0 0 12px var(--rnk_black);
}
.wrapper:hover{
    border-radius: 15px;
    box-shadow: 0 2px 30px var(--rnk_gold);
}
.wrapper:hover img {
  transform: scale(1.5);
}

.wrapper:hover h3 {
  transform: scale(0.9);
  text-shadow: 0 3px 8px var(--rnk_gold);
}

.wrapper:hover .image-wrapper {
  width: 100%;
}


/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    aspect-ratio: 1;
    background: rgba(55, 65, 81, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(55, 65, 81, 0.5);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.about-content .btn {
    margin-top: 1rem;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    padding: 1.2rem;
}
.contact-info{
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    align-items: center;
    text-align: center;
    
}
.contact-info h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #d1d5db;
    font-size: 1.5rem;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: #9ca3af;
    flex-shrink: 0;
}

.social-media{
    padding: 0 0 2rem;
}

.social-media h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff;
}

.social-links {
    display: flex;
    justify-content: left;
    gap: 1.2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--rnk_gold);
    color: var(--rnk_black);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* ===== FORM STYLES ===== */
.form {
    background: var(--rnk_black);
    border: 1px solid var(--rnk_brown_earth);
    border-radius: 12px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.form-input {
    width: 100%;
    padding: 0.875rem;
    background: rgba(81, 71, 55, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--rnk_gold);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-textarea {
    resize: vertical;
}


/* ===== FOOTER ===== */
.footer {
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(55, 65, 81, 0.5);
    text-align: center;
    color: #9ca3af;
    background: #000000;
}

/* ===== FLOATING BUTTON ===== */
.floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #000000;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.floating-btn:hover {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* ===== ANIMATION CLASSES ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 300px;
        margin: 0 auto 3rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3rem 1rem;
    }

    .floating-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.75rem 1rem;
    }

    .hero {
        padding: 5rem 0.75rem 2rem;
    }

    .section {
        padding: 2.5rem 0.75rem;
    }

    .card,
    .form {
        padding: 1.5rem;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .parallax-bg {
        transform: none !important;
    }
}

.btn:focus,
.nav-link:focus,
.form-input:focus {
    outline: 2px solid rgba(59, 130, 246, 0.8);
    outline-offset: 2px;
}

/*---- */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    padding:  0;
}

.gallery img {
    width: 20%;
    height: auto;
    min-width: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery img:hover {
    transform: scale(1.05);
}

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark overlay */
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex; /* Show when 'show' class is added */
}

/* Modal image - Large and responsive */
.modal-content {
    /* Use !important to override any conflicting styles */
    width: auto !important;
    height: auto !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: auto !important;
    transition: none !important;
    transform: scale(1) !important;
}

.close-btn, .prev-btn, .next-btn {
    position: absolute;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    user-select: none;
}

.close-btn {
    top: 20px;
    right: 35px;
}

/* Style and position the navigation arrows */
.prev-btn, .next-btn {
    position: absolute; /* Position them relative to the modal container */
    color: #fff;
    font-size: 50px; /* Increase font size for better visibility */
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    user-select: none;
    z-index: 101; /* Ensure they are above the modal content */
}

.prev-btn {
    top: 50%;
    left: 20px;
    transform: translateY(-50%); /* Centering them vertically */
}

.next-btn {
    top: 50%;
    right: 20px;
    transform: translateY(-50%); /* Centering them vertically */
}