/* Import custom fonts from Google Fonts */
/* Cormorant Garamond is used for the main text with different weights and styles */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&display=swap');
/* Great Vibes is used for decorative headings */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

/* Define global color variables that can be easily changed */
:root {
    --primary-color: #A68C7D;      /* Muted rosy brown - elegant primary color */
    --accent-color: #82AC7C;       /* Sage green - natural accent */
    --background-color: #FAF7F2;   /* Ivory white - clean but warm background */
    --text-color: #54738E;         /* Dusty navy - sophisticated text color */
    --border-color: #B2A68D;       /* Warm beige - subtle border color */
    --hover-color: #7297A0;        /* Muted teal - gentle hover effect */
    --shadow-color: rgba(166, 140, 125, 0.08);  /* Lighter shadow */
    --gradient-start: #FAF7F2;     /* Clean ivory start */
    --gradient-end: #F5F2ED;       /* Subtle warm end - more refined gradient */
    
    /* Portfolio specific colors */
    --portfolio-item-border: #B2A68D;  /* Matching border-color */
    --portfolio-item-bg: #FAF7F2;      /* Matching background-color */
    --portfolio-text: #54738E;         /* Matching text-color */
    --portfolio-overlay-bg: rgba(84, 115, 142, 0.8);  /* Semi-transparent text-color */
    --portfolio-secondary-text: #7297A0;  /* Muted teal for secondary text */
    
    /* Spacing variables */
    --signature-offset: 80px;      /* distance from the signature to the menu buttons */
    --nav-spacing: 20px;           /* Reduced from 25px */
    --content-max-width: 1200px;   /* Maximum width of content area */
}

/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main body styles */
body {
    font-family: 'Cormorant Garamond', serif;
    background: linear-gradient(145deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
}

/* Common button styles */
button {
    background: none;
    border: 1px solid var(--primary-color);
    padding: 12px 30px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cormorant Garamond', serif;
    display: block;
    margin: 30px auto 0;
    position: relative;
    overflow: hidden;
}

button:hover {
    background: var(--accent-color);
    color: white;
}

/* Common form input styles */
input,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1em;
    transition: all 0.3s ease;
    background: var(--background-color);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
}

/* Common heading styles */
h1, h2, h3 {
    color: var(--text-color);
}

/* Utility class for hidden elements */
.hidden {
    display: none;
}

/* Popup message styles */
.popup-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    padding: 20px 40px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-size: 1.2em;
    color: var(--text-color);
    max-width: 90%;
}

.popup-message.show {
    opacity: 1;
    visibility: visible;
}
