/* Basic Reset & Body Styles */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right bottom, #ffffff, #c2defa, #9ccfff); /* Dark gradient background */
    color: #ecf0f1; /* Light text color */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Header Styles */
.header {
    text-align: center;
    padding: 20px 10px;
    background: linear-gradient(135deg, #ffffff, #05522a); /* Green gradient */

    color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Stronger shadow */
    margin-bottom: 40px;
    position: relative; /* For absolute positioning of the image */
}

#C{
    color: #ff9175ef; 
    font-weight: bold;
}
#M{
    color: #0fbbea;
    font-weight: bold;
}
#S{
    color: #fffd75; 
    font-weight: bold;
}

.header h1 {
    font-size: 4.5em;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header h3 {
    font-size: 2em;
    font-weight: 300;
    /* text-shadow: 1px 1px 0  #036331 */
   text-shadow: 2px 2px 12px rgba(255, 255, 255, 0.6); /* x-offset, y-offset, blur-radius, color (RGBA) */
}

/* Profile Image Styles (New) */
.profile-image-container {
    position: absolute; /* Header-ന്റെ ഉള്ളിൽ absolute ആയി വെക്കുന്നു */
    top: 20px; /* മുകളിൽ നിന്ന് 20px താഴോട്ട് */
    left: 20px; /* ഇടതുവശത്ത് നിന്ന് 20px അകലം */
    width: 120px; /* ചിത്രത്തിന്റെ വീതി */
    height: 120px; /* ചിത്രത്തിന്റെ ഉയരം */
    border-radius: 50%; /* വൃത്താകൃതിയിലാക്കാൻ */
    overflow: hidden; /* ചിത്രത്തിന്റെ പുറത്ത് പോകുന്ന ഭാഗങ്ങൾ മറയ്ക്കാൻ */
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.5), /* White outline */
                0 10px 30px rgba(0, 0, 0, 0.6), /* Darker shadow */
                0 0 50px rgba(255, 255, 255, 0.3) inset; /* Inner glow for depth */
    transition: all 0.3s ease-in-out; /* ഹോവർ ആനിമേഷനായി */
}

.profile-image-container:hover {
    transform: scale(1.05) rotate(5deg); /* മൗസ് വെക്കുമ്പോൾ വലുതാവാനും ചെറുതായി തിരിയാനും */
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.8), /* White outline on hover */
                0 15px 40px rgba(0, 0, 0, 0.8), /* Stronger shadow on hover */
                0 0 60px rgba(255, 255, 255, 0.4) inset; /* Stronger inner glow */
}

.profile-image {
    width: 100%; /* കണ്ടെയ്നറിന്റെ പൂർണ്ണ വീതി */
    height: 100%; /* കണ്ടെയ്നറിന്റെ പൂർണ്ണ ഉയരം */
    object-fit: cover; /* ചിത്രം കണ്ടെയ്നറിന് അനുസരിച്ച് ഫിറ്റ് ചെയ്യാൻ */
    /* display: block; */
}


/* Main Container for Boxes */
.container {
    flex-grow: 1; /* Allow container to take available space */
    padding: 20px;
    max-width: 1200px; /* Limit content width */
    margin: 0 auto; /* Center the container */
}

/* Grid Layout for Boxes */
.box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 30px; /* Space between boxes */
    padding-bottom: 50px; /* Space above footer */
}

/* Individual Box Styles */
.box {
    
    padding: 30px;
    border-radius: 15px; /* More rounded corners */
    text-align: left;
    transition: all 0.3s ease-in-out; /* Smooth transitions for hover effects */
    position: relative; /* For shadow effects */
    overflow: hidden; /* Ensure content stays within bounds */
    display: flex;
    flex-direction: column;
    

}

.box h2 {
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
    color: #e9e9e9ef; /* A digital blue-green */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.box p, .box ul {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #ffffff; /* Lighter grey for main text */
    text-shadow: #000000;
}

.box ul {
    list-style: none; /* Remove default list bullets */
    padding: 0;
}

.box ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.box ul li::before {
    content: '•'; /* Custom bullet point */
    color: #f39c12; /* Orange color for bullets */
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.box a {
    color: #3498db; /* Blue link color */
    text-decoration: none;
    transition: color 0.2s ease;
}

.box p{
    text-shadow: 1px 1px 9px rgb(157, 238, 158);
}

.box a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.sample-text {
    font-size: 0.95em;
    color: #7f8c8d; /* Muted text for sample content */
    border-top: 1px solid rgba(127, 140, 141, 0.3); /* Subtle separator */
    padding-top: 10px;
    margin-top: auto; /* Push to bottom */    
}




/* Specific Box Styles & Shadows */

/* Box 1: About Me - Soft Blue/Purple Gradient */
.box-1 {
    background: linear-gradient(135deg, #06e959, #12e1ec); /* Purple/Blue gradient */
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.5), 0 0 40px rgba(162, 155, 254, 0.3) inset; /* Double shadow */
}

/* Box 2: My Skills - Energetic Green/Yellow Gradient */
.box-2 {
    background: linear-gradient(135deg, #0fbbea, #aceafb); /* Green/Teal gradient */
    box-shadow: 0 10px 20px rgba(0, 184, 148, 0.5), 0 0 40px rgba(85, 239, 196, 0.3) inset;
}

/* Box 3: Portfolio Project 1 - Dynamic Red/Orange Gradient */
.box-3 {
    background: linear-gradient(135deg, #e17055, #fdcb6e); /* Orange/Red gradient */
    box-shadow: 0 10px 20px rgba(225, 112, 85, 0.5), 0 0 40px rgba(253, 203, 110, 0.3) inset;
}

/* Box 4: Portfolio Project 2 - Deep Blue/Cyan Gradient */
.box-4 {
    background: linear-gradient(135deg, #0984e3, #74b9ff); /* Blue/Cyan gradient */
    box-shadow: 0 10px 20px rgba(9, 132, 227, 0.5), 0 0 40px rgba(116, 185, 255, 0.3) inset;
}

/* Box 5: What I Offer - Vibrant Pink/Purple Gradient */
.box-5 {
    background: linear-gradient(135deg, #e84393, #a25be8); /* Pink/Purple gradient */
    box-shadow: 0 10px 20px rgba(232, 67, 147, 0.5), 0 0 40px rgba(162, 91, 232, 0.3) inset;
}

/* Box 6: Contact Me - Golden Yellow/Orange Gradient */
.box-6 {
    background: linear-gradient(135deg, #6d4c05, #ff9f43); /* Yellow/Orange gradient */
    box-shadow: 0 10px 20px rgba(254, 202, 87, 0.5), 0 0 40px rgba(255, 159, 67, 0.3) inset;
}


/* Hover Animation for Boxes */
.box:hover {
    transform: translateY(-10px) scale(1.02); /* Lift and slightly enlarge */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 50px rgba(255, 255, 255, 0.2) inset; /* Enhanced shadow on hover */
    z-index: 10; /* Bring hovered box to front */
}

/* Footer Styles */
.footer {
    text-align: center;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.3); /* Semi-transparent dark footer */
    color: #bdc3c7;
    margin-top: 40px;
    font-size: 0.9em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5em;
    }

    .header p {
        font-size: 1.2em;
    }

    .profile-image-container {
        width: 90px; /* മൊബൈലിൽ ചെറുതാക്കുന്നു */
        height: 90px;
        top: 15px;
        left: 15px;
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5), /* White outline */
                0 8px 20px rgba(0, 0, 0, 0.6); /* Smaller shadow */
    }

    .box-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
        gap: 25px;
    }

    .box {
        padding: 25px;
    }

    .box h2 {
        font-size: 1.8em;
    }

    .box p, .box ul {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 40px 15px;
    }

    .header h1 {
        font-size: 2em;
    }

    .header p {
        font-size: 1em;
    }

    .profile-image-container {
        width: 70px; /* വളരെ ചെറിയ സ്ക്രീനുകളിൽ കൂടുതൽ ചെറുതാക്കുന്നു */
        height: 70px;
        top: 10px;
        left: 10px;
    }

    .container {
        padding: 15px;
    }

    .box {
        padding: 20px;
    }

    .box h2 {
        font-size: 1.6em;
    }
}