* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Skip Nav */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #1a1a1a;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 6px 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s ease;
}

.skip-nav:focus {
    top: 0;
}

body {
    font-family: 'montserrat';
    background: #fff;
  }
  
header {
    background: #000;
    color: #fff;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: inline-block;
    line-height: 0;
}
 
.header-logo img {
    height: 140px;
    width: auto;
    display: block;
}
  
nav ul {
    display: flex;
    gap: 1rem;
}

nav li {
    display: inline-block;
}

nav li details summary,
nav li a,
nav li details a,
#home article a.button,
#submit, 
aside > a {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
}

nav li details summary,
nav li a,
nav li details a {
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

nav li details summary {
    list-style: none;
    display: inline-flex; 
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    margin: 0;
    width: auto;
    margin-bottom: 0.5rem;
}

nav li a {
    display: inline-block;
    padding: 0.6rem 1.5rem;
}

nav li details a {
    position: relative; 
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    display: block;
}

nav li details a + a {
    margin-top: 0.5rem; 
}

nav li a:hover,
nav li details summary:hover,
nav li details a:hover {
    background: #3a3a3a;
}

nav li details summary::after {
  content: "▼";
  font-size: 0.7rem;
}

nav li details[open] > summary::after {
  transform: rotate(180deg);
}

nav li details summary::-webkit-details-marker {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
} 

#home article > section > h2,
.first-section h2,
.intro-section h2,
#website > section > h1 {
    background: linear-gradient(135deg, #b76ba3, #8b5a9f);
}

#home article > section > h2,
.first-section h2,
.intro-section h2,
#website > section > h1 {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 300px;
}
  
#home article > section > h2 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
  
#home article > section > h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #000;
}
  
#home article > section > p {
    line-height: 1.6;
    color: #444;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
}
  
#home article > section > a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
  
#home article > section > a:hover {
    color: #b668d8;
}
  
#home article > figure {
    text-align: center;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
    justify-self: end;
}
  
#home article > figure > img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    overflow: hidden;
}

#home article:nth-of-type(1) > section {
    grid-column: 1;
    grid-row: 1;
}

#home article:nth-of-type(1) > figure {
    grid-column: 2;
    grid-row: 1;
}

#home article:nth-of-type(2) > figure {
    grid-column: 1;
    grid-row: 1;
}

#home article:nth-of-type(2) > section {
    grid-column: 2;
    grid-row: 1;
}
  
#home article:nth-of-type(2) {
    grid-template-columns: 1fr 1fr;
}
  
#home > a {
    display: block;
    width: fit-content;
    margin: 3rem auto;
    padding: 0.8rem 2.5rem;
    background: #fff;
    color: #1a1a1a;
    text-decoration: none;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-weight: 600;
}
  
#home > a:hover {
    background: #f9f9f9;
}

#home article a.button {
    color: #000;
    border: 1px solid;
    border-color: #cc95c0;
    border-radius: 5px;
    padding: 6px 14px;
    margin-bottom: 10px;
    font-size: 13px;
    cursor: pointer;
}

#home article a.button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(113, 46, 111, 0.5);
}

/* About Page */
.intro-section,
.first-section {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.first-section h2,
.intro-section h2 {
    font-size: 40px;
    font-weight: 600;
}

.first-section article,
.intro-section article {
    border-radius: 12px;
}

.intro-section article p {
    margin-bottom: 20px;
}

.intro-section article p:last-child {
    margin-bottom: 0;
}

.skills-section h3 {
    font-size: 25px;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.skills-grid article {
    border: 2px solid;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.skills-grid article:hover {
    border-color: #cc95c0;
    box-shadow: 0 4px 12px rgba(183, 107, 163, 0.15);
    transform: translateY(-2px);
}

.skills-grid h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #2d2d2d;
    font-size: 10px;
}

.skills-grid h4 span {
    font-size: 13px;
}

.skills-grid ul {
    list-style: none;
    color: #666;
    font-size: 14px;
    line-height: 2;
}

/* Projects Grid */
.skills-section .skills-grid:last-of-type {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.skills-section .skills-grid:last-of-type article {
    border: 2px solid transparent;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(135deg, #e8b4d8, #a8bfe8) border-box;
    transition: all 0.3s ease;
}

.skills-section .skills-grid:last-of-type article figure {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 30px 15px;
    min-height: 200px;
}

.skills-section .skills-grid:last-of-type article figure img {
    max-width: 100%;
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.skills-section .skills-grid:last-of-type article a.button {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 10px 16px;
    background: none;
    color: #6b4a9b;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s ease;
}

.skills-section .skills-grid:last-of-type article a.button:hover {
    color: #b76ba3;
    transform: none;
    box-shadow: none;
}

.skills-section .skills-grid:last-of-type article:hover {
    box-shadow: 0 8px 24px rgba(183, 107, 163, 0.25);
    transform: translateY(-3px);
}

/* FORCE table borders to show */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Apply visible borders */
.pricing-table th,
.pricing-table td {
    border: 1.5px solid #cc95c0;
    background: #fff;
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
    padding: 1rem 1.2rem;
}

/* Header styling */
.pricing-table thead th {
    background: #fff;
    color: #000;
}

/* CTA row */
.pricing-table .pricing-cta td {
    background: #fff;
    margin: 2 auto; 
}

/* Button */
.pricing-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(to bottom, #3a3a3a, #1a1a1a);
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #555;
    margin: 0 auto;
}

.pricing-btn:hover {
    background: linear-gradient(to bottom, #cc95c0, #8b5a9f);
    border-color: #cc95c0;
}

#home article,
.first-section article,
.intro-section article,
.skills-grid article,
form {
    border: var(--border-width, 3px) solid transparent;

    --gradient-glow:  #cc95c0, #dbd4b4, #7aa1d2;
    --glow-intensity: 1; 

    /* Gradient border effect */
    background:
        linear-gradient(#fff, #fff) padding-box,
        conic-gradient(from -90deg, var(--gradient-glow)) border-box;
}

/* Footer */
footer {
    background: #000;
    color: #fff;
    padding: 0 3rem 3rem;
}
  
aside {
    background: #000;
    color: #fff;
    padding: 3rem 3rem 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
  
aside h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
  
aside > a {
    padding: 0.8rem 2rem;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 2rem;
}
  
aside > a:hover {
    background: #3a3a3a;
}
  
aside > nav {
    display: flex;
    flex-direction: row; 
    gap: 1rem;
}

aside > nav:nth-of-type(2) {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

aside > nav > a {
    color: #fff;
    text-decoration: none;
    background: none;  
    padding: 0;       
    border: none;      
    display: inline-block;
}

aside > nav > a > i {
    font-size: 1.5rem;
}

aside > nav > a:hover {
    color: #ccc;       
    background: none;  
}

footer > div > p {
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 500;
}
  
footer > p {
    text-align: center;
    margin-top: 2rem;
    color: #888;
    font-size: 0.85rem;
}

footer > p > a:link,
footer > p > a:visited {
    color: #888;
    text-decoration: none;
    font-weight: bold;
}

footer > p > a:hover,
footer > p > a:active {
    color: #888;
    text-decoration: underline;
}

@media (max-width: 768px) {
    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2.5rem 4rem;
    }

    header nav {
    align-self: center;
    margin-top: 1.5rem;  
    }

    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 200px;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    nav li {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    nav li a,
    nav li details summary {
        text-align: center;
    }

    /* Main */
    main {
        max-width: 1000px;
        padding: 0 2.5rem;
    }
    
    article {
        padding: 3.5rem;
        gap: 2.5rem;
    }
    
    article > section > h2 {
        font-size: 2.2rem;
    }

    /* Home Page Article */
    #home article {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    #home article > section,
    #home article > figure {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
    
    #home article > figure,
    #home article:nth-of-type(2) > figure {
        order: -1;
    }
    
    #home article > section {
        grid-row: 2;
    }

    #home article > figure > img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    #home article > figure {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    #home article > figure > img {
        width: auto;
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        display: block;
    }
    
    /* Intro + First Section */
    .intro-section,
    .first-section {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 20px;
    }

    .intro-section h2,
    .first-section h2 {
        font-size: 36px;
        min-width: auto;
        margin-top: 40px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    /* About */
    .skills-grid article {
        grid-column: 1;
    }
    
    .skills-grid article:nth-child(1) {
        grid-row: 1;
    }
    
    .skills-grid article:nth-child(2) {
        grid-row: 2;
    }
    
    .skills-grid article:nth-child(3) {
        grid-row: 3;
    }
    
    .skills-grid article:nth-child(4) {
        grid-row: 4;
    }
    
    .first-section article {
        padding: 25px;
    }
    
    .first-section p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .pricing-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .pricing-table th,
    .pricing-table td {
        font-size: 0.8rem;
        padding: 0.6rem;
    }
    
    form {
        width: 90%;
        max-width: 420px;
        padding: 20px;
    }
    
    .two {
        margin: 15px 0;
    }
    
    .phone-field .tooltip {
        position: absolute;
        left: 20em;
        top: 100%;
        margin-left: 0;
        margin-top: 2.5px;
        width: 18em;
        font-size: 10px;
    }

    .phone-field:hover .tooltip {
        visibility: visible;
    }
    
    /* Footer */
    footer {
        padding: 0 3rem 4rem;
    }

    aside {
        padding: 4rem 3rem 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    aside h2 {
        font-size: 2.8rem;
    }

    aside > a {
    align-self: flex-start;  
    margin-left: 0;          
    padding-left: 1.5rem;    
    }

    aside > nav:first-of-type {
        align-self: flex-start;
        width: 100%;
    }
    
    aside > nav:first-of-type ul {
        padding-left: 0;
        list-style: none;
        align-items: flex-start;
    }

    aside > nav:first-of-type li {
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }

    aside > nav:first-of-type li details {
        width: 100%;
    }
    
    aside > nav:nth-of-type(2) {
        justify-content: flex-start;
        margin-top: 1rem;
    }
}
  
@media (min-width: 769px) and (max-width: 1440px) {
    header {
        padding: 3rem 6rem;
    }
    
    main {
        max-width: 1200px;
        margin: 4rem auto;
        padding: 0 3rem;
    }
    
    article {
        padding: 4rem;
        gap: 3rem;
    }
    
    article > section > h2 {
        font-size: 2.5rem;
    }
    
    article > section > p {
        font-size: 1.05rem;
        line-height: 1.7;
    }
    
    footer {
        padding: 0 4rem 5rem;
    }

    aside {
        padding: 5rem 4rem 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    aside h2 {
        font-size: 3.2rem;
    }
    
    aside > a {
        align-self: flex-start;
        margin-left: 0;
    }

    aside > nav > a > i {
        font-size: 1.5rem;
    }
}

@media (min-width: 1440px) {
    #website .intro-section,
    #website .skills-section {
        padding: 3rem;
    }

    #website .intro-section article p {
        margin: 1rem;
    }

    #website .skills-grid {
        padding-left: 0;
        padding-right: 0;
    }

    aside {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
}