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

/* Canvas */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Body */
body {
    font-family: 'Arial', sans-serif;
    color: #fff;
    background-color: #000;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

/* Horizontal Line */
hr {
    border: none;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

/* Buttons */
.button {
    border: 2px solid #fff;
    background-color: grey;
    color: white;
    padding: 12px 24px;
    font-size: 1rem;
    margin: 1rem 0.5rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.button:hover {
    background-color: #f20707;
    color: white;
}

/* Typography */
h1, h3, blockquote {
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

h2 {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    text-align: left; /* Align section titles to the left */
    font-size: 2rem; /* Larger font size for section titles */
    margin-bottom: 1rem;
}

p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0.5rem 0;
}

/* Main Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 3rem; /* Adds consistent space between sections */
}

/* Header */
header {
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem; /* Additional spacing below header */
    text-align: center;
}

/* Make the name in the header stand out */
header h1 {
    font-size: 5rem; /* Larger font size for the name */
    font-weight: bold; /* Bold font */
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.25rem;
    font-weight: normal;
    margin-top: 1rem;
}

/* Sections */
section {
    background: rgba(24, 23, 23, 0.9);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: left;
    border: 2px solid white; /* White outline for section boxes */
    margin-bottom: 3rem; /* Adds more space between sections */
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.2s ease;
    perspective: 1000px;
}

/* Add a wrapper div for the content to prevent text distortion */
.section-content {
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
}

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

section ul li {
    margin-bottom: 1rem;
    text-align: left;
}

section ul li p {
    text-align: left;
    margin-left: 0;
}

section ul li strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

/* Blockquote */
blockquote {
    background: rgba(245, 4, 4, 0.5);
    color: #fff;
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid white; /* White outline for blockquote */
    margin-bottom: 3rem; /* Adds more space below blockquotes */
}

/* Footer Section */
section:last-of-type {
    text-align: center;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    header h1 {
        font-size: 2.5rem; /* Adjusted font size for name on tablets */
    }

    h2 {
        font-size: 1.75rem; /* Adjusted section title font size for tablets */
    }

    p, section ul li {
        font-size: 0.9rem;
    }

    .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .contact-button {
        max-width: 220px;
        min-width: 160px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .contact-buttons-container {
        gap: 12px;
        padding: 0 8px;
    }

    .contact-buttons-column {
        max-width: 280px;
        gap: 8px;
    }

    hr {
        margin: 1.5rem 0;
    }
}

@media screen and (max-width: 600px) {
    .contact-buttons-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .contact-buttons-column {
        width: 100%;
        max-width: 250px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .contact-button {
        width: auto;
        min-width: 140px;
        max-width: 200px;
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    main {
        padding: 1rem;
    }

    header h1 {
        font-size: 2rem; /* Adjusted font size for name on phones */
    }

    h2 {
        font-size: 1.5rem; /* Adjusted section title font size for phones */
    }

    .button {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .contact-button {
        min-width: 120px;
        max-width: 180px;
        padding: 8px 10px;
        font-size: 12px;
        margin: 5px auto;
    }

    .contact-buttons-container {
        gap: 8px;
        padding: 0 5px;
    }

    .contact-buttons-column {
        max-width: 220px;
        gap: 6px;
    }

    hr {
        margin: 1rem 0;
    }
}

@media screen and (max-width: 360px) {
    .contact-buttons-column {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .contact-button {
        width: 100%;
        max-width: 200px;
        min-width: 100px;
        padding: 10px 8px;
        font-size: 11px;
    }
}

.contact-button {
    display: block;
    width: 100%;
    max-width: 250px;
    min-width: 180px;
    margin: 10px auto;
    padding: 12px 20px;
    background-color: rgba(128, 128, 128, 0.4); /* More transparent gray */
    color: white;
    border: 2px solid white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-button:hover {
    background-color: rgba(160, 160, 160, 0.6); /* More transparent on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.8s ease;
    opacity: 0;
    filter: blur(10px);
}

section:hover .glow {
    opacity: 1;
}

/* Contact section specific styles */
section:has(h1:first-child:contains("Contact Me")) {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

section:has(h1:first-child:contains("Contact Me")) .contact-button {
    width: 45%;
    margin: 10px 0;
}

.contact-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto; /* Center the container */
    padding: 0 10px;
}

.contact-buttons-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto; /* Center the columns */
}