/* Variables for consistent styling */
:root {
    --primary-color: #FF4500; /* OrangeRed - energetic, bold */
    --secondary-color: #007bff; /* Blue - often associated with sports teams */
    --accent-color: #28a745; /* Green - growth, success */
    --dark-bg: #1a1a1a; /* Dark background for contrast */
    --light-text: #f0f0f0;
    --dark-text: #333;
    --gradient-start: #FF6B6B; /* Lighter red */
    --gradient-end: #EE874D; /* More orange */
    --spacing-unit: 20px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif; /* Modern, clean font */
    line-height: 1.6;
    color: var(--light-text);
    background-color: var(--dark-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

section {
    padding: var(--spacing-unit) * 3 0; /* Generous padding for sections */
}

.bg-dark {
    background-color: #222;
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif; /* Bold, impactful headlines */
    text-align: center;
    margin-bottom: var(--spacing-unit) * 2;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 { font-size: 3.5em; }
h2 { font-size: 2.5em; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: var(--spacing-unit);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
}

.primary-btn {
    background: linear-gradient(to right, var(--primary-color), var(--gradient-end));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.6);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.download-btn {
    background-color: var(--accent-color);
    color: white;
    margin-top: var(--spacing-unit);
}

.download-btn:hover {
    background-color: #218838;
}


/* Header & Navigation */
.main-header {
    background-color: rgba(26, 26, 26, 0.95); /* Slightly transparent for hero section */
    padding: var(--spacing-unit) 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: var(--spacing-unit);
}

.nav-links a {
    color: var(--light-text);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    text-transform: uppercase;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    position: relative;
    transition: all var(--transition-speed) ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--light-text);
    transition: all var(--transition-speed) ease;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

/* Hero Section */
.hero-section {
    position: relative; /* For absolute positioning of video */
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Important: Hides video content outside the section */
    background-color: #1a1a1a; /* Fallback background color if video doesn't load/play */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1; /* Puts video behind content */
    transform: translate(-50%, -50%); /* Centers the video */
    object-fit: cover; /* Ensures video covers the entire area without distortion */
    filter: brightness(60%) contrast(110%); /* Adjust for desired visual effect (darken, sharpen) */
}

.hero-video img { /* Style for the fallback image if video doesn't play */
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: relative; /* Ensures content is above the video */
    z-index: 2; /* Puts content above the video */
    color: white; /* Ensure text is visible */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7); /* Enhance readability */
    padding: var(--spacing-unit);
}

.hero-title {
    font-size: 4em;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 800; /* Make it bold */
    text-transform: uppercase; /* Stronger appearance */
    letter-spacing: 2px;
}

.hero-title .highlight-primary {
    color: var(--primary-color); /* Orange highlight */
}

.hero-title .highlight-secondary {
    color: var(--secondary-color); /* Blue highlight */
}

.hero-tagline {
    font-size: 1.8em;
    margin-bottom: 40px;
    font-weight: 500;
    font-style: italic;
}

.hero-buttons .btn {
    margin: 0 15px;
    padding: 15px 35px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 50px; /* Rounded buttons for sporty feel */
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.hero-buttons .btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.4);
}

.hero-buttons .btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
}

.hero-buttons .btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5em;
    }
    .hero-tagline {
        font-size: 1.2em;
    }
    .hero-buttons .btn {
        margin: 10px 5px; /* Adjust margin for stacked buttons */
        display: block; /* Stack buttons vertically */
        width: calc(100% - 20px); /* Nearly full width */
        max-width: 250px; /* Limit max width */
        margin-left: auto;
        margin-right: auto;
    }
}

/* About Me Section - Fresh Redesign */
.about-section {
    background-color: var(--dark-bg); /* Use main dark background */
    position: relative;
    overflow: hidden;
    color: var(--light-text);
    padding: var(--spacing-unit) * 4 0; /* Generous top/bottom padding */
    margin-bottom: var(--spacing-unit) * 4; /* Crucial space below section */
}

/* Diagonal line background for energy */
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        -45deg, /* Dynamic diagonal lines */
        rgba(0, 123, 255, 0.03), /* Subtle secondary color lines */
        rgba(0, 123, 255, 0.03) 10px,
        transparent 10px,
        transparent 20px
    );
    z-index: 0;
}

.about-container { /* This is the `.container` inside the About section */
    position: relative;
    z-index: 1;
    max-width: 1100px; /* Max width for the content block */
    margin: 0 auto; /* Center horizontally */
    background-color: #2a2a2a; /* Darker background for the inner content block */
    padding: var(--spacing-unit) * 3; /* Ample padding inside the dark container */
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5); /* Stronger shadow */
    border: 1px solid rgba(255, 69, 0, 0.2); /* Subtle primary color border */
    overflow: hidden; /* Ensure anything overflowing is clipped */
    /* Padding to make space for the sporty corner elements */
    padding-top: calc(var(--spacing-unit) * 3 + 15px);
    padding-bottom: calc(var(--spacing-unit) * 3 + 15px);
    padding-left: var(--spacing-unit) * 3;
    padding-right: var(--spacing-unit) * 3;
}

/* Sporty corner elements for .about-container */
.about-container::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 50px;
    height: 50px;
    border-top: 5px solid var(--primary-color);
    border-left: 5px solid var(--primary-color);
    border-radius: 8px 0 0 0;
}

.about-container::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    border-bottom: 5px solid var(--secondary-color);
    border-right: 5px solid var(--secondary-color);
    border-radius: 0 0 8px 0;
}

.about-header-wrapper {
    text-align: center;
    margin-bottom: var(--spacing-unit) * 3; /* Space below header */
    position: relative;
}

.about-section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-unit); /* Reduced margin here, managed by wrapper */
    position: relative;
    letter-spacing: 3px;
    font-size: 3em; /* Slightly larger for impact */
    text-shadow: 2px 2px 5px rgba(0,0,0,0.4);
}

.header-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    margin: 0 auto;
    border-radius: 2px;
    position: absolute; /* Position relative to wrapper */
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px; /* Adjust to sit below text */
}

.about-content-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allows stacking on smaller screens */
    align-items: center; /* Vertically align items */
    justify-content: center; /* Center items horizontally when wrapped */
    gap: var(--spacing-unit) * 3; /* Space between image and text columns */
}

.about-image-column {
    flex: 1 1 300px; /* Flexible width for the image column */
    text-align: center;
    padding: var(--spacing-unit);
}

.profile-frame {
    position: relative;
    width: 280px; /* Fixed width for the frame */
    height: 280px; /* Fixed height for the frame */
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--secondary-color); /* Strong border for frame */
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.4), inset 0 0 15px rgba(0, 123, 255, 0.2); /* Outer glow and inner shadow */
    transition: all 0.4s ease-in-out;
    background-color: #1a1a1a; /* Background if image doesn't cover fully */
}

.profile-frame:hover {
    transform: scale(1.05) rotate(3deg); /* Slight lift and rotation */
    border-color: var(--primary-color); /* Color shift on hover */
    box-shadow: 0 0 40px rgba(255, 69, 0, 0.5), inset 0 0 20px rgba(255, 69, 0, 0.3); /* New glow on hover */
}

.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the circle */
    display: block;
    border-radius: 50%; /* Maintains circular shape */
    filter: grayscale(20%); /* Subtle desaturation for sporty grit */
    transition: filter 0.3s ease;
}

.profile-frame img:hover {
    filter: grayscale(0%); /* Full color on hover */
}

.intro-tagline {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-unit) * 2;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}


.about-text-column {
    flex: 2 1 500px; /* Flexible width for the text column */
    padding: var(--spacing-unit);
    line-height: 1.8;
    color: #e0e0e0; /* Lighter text for good contrast */
    text-align: left;
    border-left: 3px solid rgba(0, 123, 255, 0.4); /* Sporty vertical accent line */
    padding-left: var(--spacing-unit) * 2;
    animation: fadeInRight 1s ease-out forwards; /* Optional: subtle animation */
}

.about-text-column p {
    margin-bottom: var(--spacing-unit) * 1.5;
}

.about-text-column .download-btn {
    margin-top: var(--spacing-unit);
    background-color: var(--secondary-color);
    border-radius: 50px;
    padding: 14px 30px;
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.about-text-column .download-btn:hover {
    background-color: #0056b3;
    transform: translateY(-5px) scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .about-container {
        padding: var(--spacing-unit) * 2; /* Adjust padding on container */
        padding-top: calc(var(--spacing-unit) * 2 + 10px);
        padding-bottom: calc(var(--spacing-unit) * 2 + 10px);
    }
    .about-container::before,
    .about-container::after {
        width: 40px;
        height: 40px;
        border-width: 4px;
        top: -10px;
        left: -10px;
        bottom: -10px;
        right: -10px;
    }
    .about-content-wrapper {
        flex-direction: column;
        gap: var(--spacing-unit) * 2;
    }

    .about-image-column,
    .about-text-column {
        padding: var(--spacing-unit) / 2;
        text-align: center;
    }

    .about-text-column {
        border-left: none; /* Remove vertical line on small screens */
        padding-left: var(--spacing-unit) / 2;
        padding-top: var(--spacing-unit); /* Add some space if text starts right after image */
    }

    .intro-tagline {
        font-size: 1.2em;
    }

    .profile-frame {
        width: 240px;
        height: 240px;
    }
}

@media (max-width: 768px) {
    .about-section h2 {
        font-size: 2.2em;
    }
    .header-line {
        width: 80px;
    }
    .about-container {
        padding: var(--spacing-unit);
        padding-top: calc(var(--spacing-unit) + 8px);
        padding-bottom: calc(var(--spacing-unit) + 8px);
    }
    .about-container::before,
    .about-container::after {
        width: 30px;
        height: 30px;
        border-width: 3px;
        top: -8px;
        left: -8px;
        bottom: -8px;
        right: -8px;
    }
    .intro-tagline {
        font-size: 1em;
    }
    .about-text-column p {
        font-size: 0.95em;
    }
}

/* Optional Keyframe Animation for subtle text entrance */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-unit);
    text-align: center;
    color: var(--light-text);
}

.skill-item {
    background-color: #2a2a2a;
    padding: var(--spacing-unit) * 1.5;
    border-radius: var(--border-radius);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border-bottom: 4px solid var(--primary-color); /* Sporty underline */
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border-color: var(--secondary-color);
}

.skill-item i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.skill-item h3 {
    margin-bottom: 10px;
    color: var(--light-text);
    text-transform: capitalize;
    letter-spacing: normal;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-unit);
}

.project-card {
    background-color: #2a2a2a;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform var(--transition-speed) ease;
    border-bottom: 4px solid var(--primary-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border-color: var(--secondary-color);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #333;
}

.project-info {
    padding: var(--spacing-unit);
}

.project-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: left;
    color: var(--primary-color);
    text-transform: none;
    letter-spacing: normal;
    font-size: 1.5em;
}

.project-info p {
    font-size: 0.95em;
    color: var(--light-text);
    margin-bottom: var(--spacing-unit);
}

.project-tech span {
    display: inline-block;
    background-color: #3e3e3e;
    color: #bbb;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    margin-right: 8px;
    margin-bottom: 8px;
}

.project-link {
    display: inline-block;
    margin-top: 10px;
    margin-right: 15px;
    color: var(--secondary-color);
    font-weight: 600;
}

.project-link i {
    margin-left: 5px;
}

.project-link:hover {
    color: var(--primary-color);
}

/* Experience Section (Timeline) */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 20px 0;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    text-align: right;
    padding-right: 50px;
    left: 0;
}

.timeline-item:nth-child(even) {
    text-align: left;
    padding-left: 50px;
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    top: 28px;
    z-index: 1;
    border: 3px solid var(--light-text);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -9px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -9px;
}

.timeline-date {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1em;
    margin-bottom: 5px;
}

.timeline-content {
    background-color: #2a2a2a;
    padding: var(--spacing-unit);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.timeline-content h3 {
    margin-top: 0;
    text-align: left;
    margin-bottom: 10px;
    color: var(--light-text);
    text-transform: none;
    font-size: 1.3em;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content ul li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 20px;
    color: #ccc;
}

.timeline-content ul li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
}


/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #2a2a2a;
    padding: var(--spacing-unit) * 2;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.contact-text {
    text-align: center;
    margin-bottom: var(--spacing-unit) * 2;
}

.form-group {
    margin-bottom: var(--spacing-unit);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--light-text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #333;
    color: var(--light-text);
    font-size: 1em;
    transition: border-color var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.3);
}

.contact-form .primary-btn {
    width: 100%;
    margin-top: var(--spacing-unit);
}

.social-links {
    text-align: center;
    margin-top: var(--spacing-unit) * 2;
}

.social-links a {
    font-size: 2.5em;
    margin: 0 15px;
    color: var(--light-text);
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Footer */
.main-footer {
    background-color: #111;
    color: var(--light-text);
    text-align: center;
    padding: var(--spacing-unit);
    border-top: 3px solid var(--primary-color);
}

/* Utility Classes */
.section-padding {
    padding: var(--spacing-unit) * 3 0;
}

/* Responsive Design (Media Queries) */

/* Tablet and smaller laptops */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 4em;
    }
    .hero-content .tagline {
        font-size: 1.3em;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-image {
        margin-bottom: var(--spacing-unit);
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        left: 0 !important;
    }

    .timeline-item:nth-child(odd) {
        text-align: left;
        padding-right: 0;
    }

    .timeline-dot {
        left: 11px !important;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 0 20px;
    }

    .logo {
        flex-basis: 100%; /* Logo takes full width on mobile */
        text-align: center;
        margin-bottom: 15px;
    }

    .nav-toggle {
        display: block; /* Show hamburger on mobile */
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        display: none; /* Hidden by default */
        text-align: center;
        background-color: rgba(26, 26, 26, 0.98);
        padding: 15px 0;
        border-top: 1px solid #444;
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links li {
        margin: 10px 0;
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .hero-content .tagline {
        font-size: 1em;
    }

    .hero-content .btn {
        display: block;
        width: 80%;
        margin: 15px auto;
    }

    h1 { font-size: 2.8em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.5em; }

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

    .timeline-item {
        text-align: left;
    }
}

/* Hamburger animation for active state */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: translateY(0) rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: translateY(0) rotate(-45deg);
}
/* Back to Top Arrow */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-unit); /* Adjust as needed */
    right: var(--spacing-unit); /* Adjust as needed */
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Make it circular */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    opacity: 0; /* Initially hidden */
    visibility: hidden; /* Also hidden from screen readers when invisible */
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease, transform 0.2s ease-in-out;
    z-index: 999; /* Ensure it's above other content */
    cursor: pointer;
    text-decoration: none; /* Remove underline for the link */
}

.back-to-top:hover {
    background-color: var(--secondary-color); /* Change color on hover */
    transform: translateY(-5px); /* Slight lift effect */
}

.back-to-top.show {
    opacity: 1; /* Make it visible */
    visibility: visible;
}

/* Adjust for smaller screens if necessary */
@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.3em;
        bottom: calc(var(--spacing-unit) / 2);
        right: calc(var(--spacing-unit) / 2);
    }
}
#phone{
    font-size: large;
    text-align: center;
}