body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f3e8ff; /* Light lavender */
    color: #4a235a; /* Deep purple for text */
}

header {
    background-color: #9b59b6; /* Medium purple */
    color: white;
    padding: 15px;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #f8f5ff; /* Soft lavender-white */
    text-decoration: none;
    font-weight: bold;
}

section {
    padding: 20px;
    text-align: center;
    background-color: #ede7f6; /* Pale purple for section background */
    border-radius: 10px;
    margin: 20px;
}

img {
    width: 150px;
}
/* Mobile View (Up to 767px) */
@media screen and (max-width: 767px) {
    body {
        font-size: 16px;
    }
    
    header {
        text-align: center;
        padding: 10px;
    }

    nav ul {
        display: block;
        text-align: center;
        padding: 0;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    img {
        width: 120px;
    }

    section {
        padding: 15px;
    }
}

/* Tablet View (768px - 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    body {
        font-size: 18px;
    }

    img {
        width: 140px;
    }

    section {
        padding: 20px;
    }
}
/* Fade-In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Branding Colors */ 
:root {
    --primary-color: #9b59b6; /* Medium purple */
    --secondary-color: #6c3483; /* Darker purple for accents */
    --background-color: #f3e8ff; /* Light lavender */
    --text-color: #4a235a; /* Deep purple text */
    --accent-color: #ba68c8; /* Soft purple-pink for buttons */
}

/* Dark Mode */
.dark-mode {
    --primary-color: #6a0dad; /* Dark purple */
    --secondary-color: #4b0082; /* Indigo/darker purple */
    --background-color: #1a001f; /* Very dark purple background */
    --text-color: #f3e8ff; /* Light lavender text */
    --accent-color: #bb86fc; /* Light violet for accents */
}

/* Apply General Styles */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 15px;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Headings */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
}

/* Buttons */
button {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
button:hover {
    background-color: #8e44ad; /* Darker purple hover */
}
/* Fade-In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #8e44ad;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
button:hover {
    background-color: #8e44ad;
}
/* Light Mode (Default) */
:root {
    --primary-color: #9b59b6; /* Medium purple */
    --secondary-color: #6c3483; /* Darker purple for accents */
    --background-color: #f3e8ff; /* Light lavender */
    --text-color: #4a235a; /* Deep purple text */
    --accent-color: #ba68c8; /* Soft purple-pink for buttons */
}

/* Dark Mode */
.dark-mode {
    --primary-color: #4b007a;       /* Darker rich purple */
    --secondary-color: #3a0060;     /* Darker accent purple */
    --background-color: #1f002b;    /* Deep but not black purple */
    --text-color: #bf92ff;          /* Darker lavender text for readability */
    --accent-color: #9955ff;        /* Deeper violet for buttons/highlights */
}
/* Apply General Styles */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 15px;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Headings */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
}

/* Buttons */
button {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
button:hover {
    background-color: #8e44ad; /* darker purple hover */
}
/* Button Hover Effect (Cross-Browser Support) */
button {
    background-color: #6a0dad !important; /* dark purple */
    color: white !important;
    padding: 10px 20px;
    border: none !important;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

/* Vendor Prefixes */
button:hover {
    background-color: #4b0082 !important; /* darker purple on hover */
    transition: background-color 0.3s ease-in-out;
    -webkit-transition: background-color 0.3s ease-in-out;
    -moz-transition: background-color 0.3s ease-in-out;
    -o-transition: background-color 0.3s ease-in-out;
}
#contact ul {
    list-style: none;
    padding: 0;
}

#contact ul li {
    margin: 10px 0;
}

#contact a {
    color: #4b0082;
    font-size: 18px;
    text-decoration: none;
    font-weight: bold;
}

#contact a:hover {
    color: #4b0082;
}
#highlights {
    padding: 40px;
    text-align: center;
}

.project-card {
    display: inline-block;
    width: 300px;
    margin: 15px;
    padding: 15px;
    background: white;
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.project-card img {
    width: 100%;
    border-radius: 5px;
}

.project-card h3 {
    color: #3498db;
}
/* Improve focus visibility */
a:focus, button:focus {
    outline: 3px solid #ff9800;
    background-color: #333;
    color: white;
}
