/* Brand Colors */
:root {
    --primary-color: #123657; /* Primary color */
    --secondary-color: #F8B144; /* Secondary color */
}

.secondary-color {
    color: var(--secondary-color); /* Use the secondary color variable */
}

/* Mega Menu */
.mega-menu {
    display: flex;
    width: 100%;
    padding: 30px;
}

#canvasContainer {
    text-align: center;
    margin-top: 20px;
    max-height: 80vh; /* Adjust according to the page size */
    overflow-y: scroll; /* Enable vertical scrolling */
    display: none; /* Hide initially */
}
canvas {
    border: 1px solid #ccc;
}


.front-page {
    width: 100%;
    background-color: #f1faee !important;
    padding:0 !important;
}

/* Skills Container */
.skills-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    padding: 20px;
    width: 95%;
    box-sizing: border-box;
}

/* Skills Section */
.skills-section {
    width: 100%;
    max-width: 1200px;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Stronger shadow for card effect */
    border-radius: 10px;
    border-left: 6px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills-section:hover {
    transform: translateY(-10px); /* Enhanced hover effect */
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3); /* Deeper shadow on hover */
}

/* Section Header */
.section-header {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 4px solid var(--secondary-color);
    padding-bottom: 10px;
    text-align: left;
}

/* Skill Card Container */
.skill-card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Four cards per row */
    gap: 25px; /* Add some spacing between the cards */
    margin-top: 20px;
    width: 80%;
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Individual Skill Card */
.skill-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    width: 210px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--primary-color);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* Skill Card Icon */
.skill-card-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Skill Card Title */
.skill-card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Skill Card Description */
.skill-card-description {
    font-size: 1em;
    color: #555;
    margin-bottom: 20px;
}

/* Skill Card Button */
.skill-card-button {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.skill-card-button:hover {
    background-color: var(--primary-color);
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Responsive Design */

/* For devices with a max-width of 768px */
@media (max-width: 768px) {
    .skills-section {
        padding: 20px;
    }
    
    .skill-card-container {
        grid-template-columns: repeat(2, 1fr); /* Two cards per row */
        gap: 20px;
        width: 90%;
    }

    .skill-card {
        width: 95%; /* Full width of container */
    }

    .section-header {
        font-size: 2em; /* Smaller font size for headers */
    }
    .mega-menu {
        display: flex;
        width: 90%;
        padding: 20px;
	}
}

/* For devices with a max-width of 480px */
@media (max-width: 480px) {
    .skills-section {
        padding: 5px;
    }
    /* Skills Container */
    .skills-container {        
        gap: 30px;
        padding: 10px;
        width: 100%;        
    }
    
    .skill-card-container {
        grid-template-columns: 1fr; /* One card per row */
        gap: 15px;
    }

    .skill-card {
        width: 95%; /* Full width of container */
    }

    .section-header {
        font-size: 1.8em; /* Smaller font size for headers */
    }

    .skill-card-title {
        font-size: 1.2em;
    }

    .skill-card-description {
        font-size: 0.9em;
    }

    .skill-card-button {
        font-size: 1em;
        padding: 8px 15px;
    }

    .mega-menu {
        display: flex;
        width: 90%;
        padding: 10px;
	}
}

/* For devices with a max-width of 360px */
@media (max-width: 360px) {

    .mega-menu {
        display: flex;
        width: 90%;
        padding: 10px;
	}

    .skills-section {
        padding: 5px;
    }
    
    .skill-card-container {
        grid-template-columns: 1fr; /* One card per row */
        gap: 10px;
    }

    .skill-card {
        width: 90%;
    }

    .section-header {
        font-size: 1.5em; /* Smaller font size for headers */
    }

    .skill-card-title {
        font-size: 1em;
    }

    .skill-card-description {
        font-size: 0.8em;
    }

    .skill-card-button {
        font-size: 0.9em;
        padding: 7px 12px;
    }
}

@keyframes blink {
    50% { opacity: 0; }
}

.blink {
    animation: blink 1s linear infinite;
}