/* === Font-family === */

/** Font for Headings **/

/* righteous-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Righteous';
  font-style: normal;
  font-weight: 400;
  src: url('..assets/fonts/righteous-v18-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/** Font for body text **/

/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('..assets/fonts/inter-v19-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('..assets/fonts/inter-v19-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* === CSS Custom Properties === */

:root {
    /* Colors */
    --color-primary: #007bff;
    --color-secondary: #002BFF;
    --color-accent: #55A7FF;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    --color-white: #ffffff;
    --color-black: #000000;

    /* Grayscale */
    --gray-100: #f4f4f4;
    --gray-200: #dcdcdc;
    --gray-300: #bfbfbf;
    --gray-400: #9b9b9b;
    --gray-500: #7a7a7a;
    --gray-600: #5a5a5a;
    --gray-700: #3c3c3c;
    --gray-800: #1c1c1c;
    --gray-900: #0f0f0f;

    /* Typography */
    --font-base:'Inter', 'Helvetica Neue', 'Segoe UI', 'Roboto', sans-serif;
    --font-heading: 'Righteous', 'Arial Black', 'Impact', sans-serif;
    --font-size-base: 16px;
    --font-size-h1: 3.3rem;
    --font-size-h1-m: 3rem;
    --font-size-h1-s: 2.5rem;
    --font-size-h1-xs: 2rem;
    --font-size-h2: 2.5rem;
    --font-size-h2-m: 2.2rem;
    --font-size-h2-s: 2rem;
    --font-size-h2-xs: 1.6rem;
    --font-size-h3: 1.7rem;
    --font-size-h3-s: 1.5rem;
    --font-size-h3-xs: 1.3rem;
    --font-size-nav-a: 1.375rem;
    --font-size-nav-a-small: 1rem;
    --font-size-xs: 0.7rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.15rem;
    --line-height-base: 1.5;
    --line-height-heading: 1.8;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 3rem;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-pill: 50rem;
    --radius-circle: 50%;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* === Global Resets and Configs === */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    letter-spacing: 0.6px;
}

/* === Body Configs === */

html, body {
    min-height: 100vh;
    background-color: var(--gray-100);
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

a:visited {
    color: var(--gray-900);
}

/* === Typography Configs === */

h1 {
    font-family: var(--font-heading);
    font-size: var(--font-size-h1);
    line-height: var(--line-height-base);
    color: var(--gray-900);
    text-shadow: var(--shadow-lg);
}

@media (max-width: 780px) {
    h1 {
        font-size: var(--font-size-h1-m);
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: var(--font-size-h1-s);
    }
}

@media (max-width: 520px) {
    h1 {
        font-size:  var(--font-size-h1-xs);
    }
}

h2 {
    font-family: var(--font-heading);
    font-size: var(--font-size-h2);
    line-height: var(--line-height-base);
    color: var(--gray-900);
    text-shadow: var(--shadow-md);
}

@media (max-width: 1200px) {
    h2 {
        font-size: var(--font-size-h2-m);
    }
}

@media (max-width: 600px) {
    h2 {
        font-size: var(--font-size-h2-s);
    }
}

@media (max-width: 520px) {
    h2 {
        font-size: var(--font-size-h2-xs);
    }
}

h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-h3);
    line-height: var(--line-height-heading);
    color: var(--gray-900);
    text-shadow: var(--shadow-md);
}

@media (max-width: 600px) {
    h3 {
        font-size: var(--font-size-h3-s);
    }
}

@media (max-width: 400px) {
    h3 {
        font-size: var(--font-size-h3-xs)
    }
}

p {
    font-family: var(--font-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    margin: 15px 0 30px;
    text-shadow: var(--shadow-sm);
}

/* === Main content configs === */

hr {
    border: none;
    border-bottom: 2px solid var(--color-accent);
    text-align: center;
}

/* Header and Navbar */

header {
    display: flex;
    width: 100%;
    min-height: 10vh;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 1.5rem;
    height: 1.5rem;
    transition: var(--transition-base);
    color: var(--color-primary);
}

.logo:hover {
    color: var(--color-secondary);
}

header ul {
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar li {
    height: 30px;
    margin-right: 2rem;
}

.navbar li:last-child {
    margin-right: 0;
}

.navbar a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    font-family: var(--font-heading);
    font-size: var(--font-size-nav-a);
    font-weight: 500;
    transition: var(--transition-base);
    color: var(--color-primary);
    text-shadow: var(--shadow-md);
}

/* Hover Configs - Navbar Section */

.navbar a:hover {
    color: var(--color-secondary);
    text-shadow: var(--text-shadow);
}

@media (max-width: 400px) {

    .navbar li {
        height: 25px;
        margin-right: 1rem;
    }
}

/* === Hero Section Configs === */

/* Hero Configs */

.hero-section {
    display: flex;
    flex-direction: column;
}

.hero-headings {
    text-align: center;

    h1 {
        margin-top: var(--space-lg);
    }
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 10% 50% 1fr; /* 10% for margin-left */
    grid-template-rows:1fr;
}

.hero-content {
    grid-area: 1 / 2 / 2 / 3;
    padding: 2rem 0
}

.quicklinks-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.quicklinks {
    width: 200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0 1rem 0;
}

.hero-img-wrapper {
    grid-area: 1 / 3 / 2 / 4;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 2rem 0
}

.hero-img {
    max-width: 100%;
    height: auto;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-md);
    object-fit: cover;
    /* Optional: set a max-height if needed */
    /* max-height: 400px; */
}

@media (max-width: 1000px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        padding: 2rem 5rem 0;
    }

    .hero-content {
        grid-area: 1 / 1 / 1 / 1;
        padding: 0;
    }

    .hero-img-wrapper {
        grid-area: 2 / 1 / 2 / 1;
    }
}

@media (max-width: 780px) {
    .hero-wrapper {
        padding: 2rem 2rem 0;
    }

    .hero-content {
        grid-area: 1 / 1 / 1 / 1;
        padding: 0;
    }

    .hero-img-wrapper {
        grid-area: 2 / 1 / 2 / 1;
    }
}

/* Contact Quicklinks Configs */

.email-btn {
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-md);
    color: var(--color-white);
    background-color: var(--color-primary);
    width: 46px;
    height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-base);
}

.email-btn svg {
    width: 35px;
    height: 35px;
    color: var(--color-white)
}

.contact-logo {
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-md);
    color: var(--color-white);
    background-color: var(--color-primary);
    width: 46px;
    height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-base);
}

.contact-logo svg {
    width: 30px;
    height: 30px;
    color: var(--color-white)
}

/*  Hover Configs - Contact Logos */

.contact-logo:hover, .email-btn:hover {
    background-color: var(--color-secondary);
}

/* === Projects Section Configs === */

.projects-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.projects-section h2 {
        margin-top: var(--space-lg);
        margin-left: 10%;
}

.projects-section h3 {
        margin-left: 10%;
}

.projects-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-rows: repeat(auto-fit, 1fr);
    gap: 2rem;
    padding: 2% 10%;
}

@media (max-width: 790px) {

    .projects-section h2 {
        margin-left: 5%;
}

    .projects-section h3 {
        margin-left: 5%;
    }

    .projects-grid {
        padding: var(--space-lg) 5%;
    }
}

.projects-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

@media (max-width: 700px) {
    .projects-wrapper {
        align-items: center;
    }
}

.projects-grid a {
    width: 305px;
    height: 230px;
}

.projects-grid a:hover {
    color: var(--color-secondary);
}

.projects-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-accent);
    transition: var(--transition-fast);
}

.projects-grid img:hover {
    transform: scale(1.05);
}

.projects-grid span {
    display: block;
    font-family: var(--font-base);
    font-size: var(--font-size-base);
    text-shadow: var(--shadow-sm);
    width: 305px;
    padding: 0.5rem 0 0;
}

/* === Contact Section Configs === */

.contact-section {
    display: flex;
    flex-direction: column;
}

.contact-section h2 {
    padding-top: var(--space-lg);
    margin-left: 10%;
}

.contact-links {
    margin-left: 10%;
    padding-top: var(--space-md);
    width: 50%;
    display: flex;
}

.contact-links a {
    margin-right: var(--space-md);
}

.contact-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    padding: 0 10%;
}

.contact-grid form {
    /* width: 100%; */
    max-width: 50vw;
    display: flex;
    flex-direction: column;
    font-family: var(--font-base);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-base);
    text-shadow: var(--shadow-sm);
    grid-area: 1 / 1 / 2 / 2;
}

.contact-grid-input {
    width: 50%;
    padding: var(--space-sm) var(--space-sm);
    border-radius: var(--radius-md);
}

.form-label {
    padding: var(--space-sm) 0;
}

input:focus, textarea:focus {
    outline: none;
    border: 2px solid var(--color-primary);
}

.contact-grid form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: var(--space-sm) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    resize: vertical;
}

.consent-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-md) 0 0;
}

.consent-checkbox {
    width: 10px;
    height: 10px;
    margin: 0 var(--space-md);
}

.consent-label {
    font-size: var(--font-size-xs);
    line-height: 10px;
    padding-right: 1.5rem;
}

.consent-label a {
    color: var(--color-primary);
    text-decoration: none;
}

.submit {
    font-size: var(--font-size-lg);
    align-self: center;
    width: fit-content;
    justify-items: center;
    padding: var(--space-md) var(--space-md);
    margin: var(--space-lg) 0 var(--space-lg);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-md);
    color: var(--color-white);
    background-color: var(--color-primary);
    transition: var(--transition-base);
}

.submit:hover {
    cursor: pointer;
    background-color: var(--color-secondary);
}

.contact-img-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: var(--space-lg) 0;
}

img {
    max-width: 100%;
    height: auto;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-md);
    object-fit: cover;
    grid-area: 1 / 2 / 2 / 3;
}

@media (max-width: 1000px) {
    .contact-grid {
        display: grid;
        max-width: 100%;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        padding: 0 10%;
    }

    .contact-grid form {
        max-width: 100vw;
    }

    .contact-grid form textarea {
        width: 100%;
    }

    .contact-links {
        padding-top: var(--space-md);
        margin-bottom: var(--space-md);
    }

    .contact-grid-input {
        width: 75%;
    }

    .submit {
        margin: var(--space-lg) 0 0;
    }
}

/* === Footer === */

.footer {
    display: flex;
    width: 100%;
    min-height: 10vh;
    justify-content: center;
    align-items: center;

}

.footer a {
    color: var(--color-primary);
    margin-right: 2rem;
    text-shadow: var(--text-shadow);
    transition: var(--transition-base);
}

.footer a:hover {
    color: var(--color-secondary)
}

.footer p {
    margin: 0;
}


@media (max-width: 400px) {
    .footer a {
        margin-right: 1rem;
        font-size: var(--font-size-sm);
    }

    .footer p {
        font-size: var(--font-size-sm);
        margin: 0;
    }
}

/* === Thank you Form Confirmation === */

.thankyou {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;

    a {
        font-family: var(--font-base);
        font-size: 20px;
        color: var(--color-primary);
        text-decoration: none;
        margin-top: 2rem;
        transition: var(--transition-base);
    }

    a:hover {
        color: var(--color-secondary);
    }

    img {
        width: 200px;
        height: 200px;
        border-radius: var(--radius-circle);
        border: 2px solid var(--color-accent);
    }
}