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

html, body {
    font-family: 'Open Sans', sans-serif;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
    transition: background 0.3s ease;
}

a {
    text-decoration: none;
    color: black;
}

hr {
    border: none;
    height: 1px;
    background: #e0e0e0;
    margin: 20px 0;
}

#container {
    position: relative;
    display: flex;
}

#profile {
    flex: 15%;
    display: block;
    position: relative;
    margin: 5% 2% 0 10%;
    width: 100%;
    height: 100%;
}

#info-cards {
    flex: 55%;
    display: block;
    margin-top: 5%;
    margin-right: 10%;
    width: 100%;
    height: 100%;
}

#image {
    position: relative;
    overflow: hidden;
}

#image, #profile-photo {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 10px;
}

#image > a {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5) !important;
    height: 100%;
    width: 100%;
    display: none;
}

#image > a > i {
    -webkit-text-stroke: 1px #ffffffdd;
    padding: 40%;
}

#image:hover a {
    display: block;
}

#name {
    font-size: 23px !important;
    line-height: 28px !important;
    font-weight: 700;
    color: #1a1a2e;
}

#about, .card > ul > li {
    padding: 0 0 0 15px;
    position: relative;
    display: inline-block;
    width: 100%;
}

#about {
    font-size: 20px !important;
    padding: 0 !important;
    margin-bottom: 10px;
}

#name, #about > p {
    font-weight: bolder;
    font-family: 'Open Sans', sans-serif;
}

#email {
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: 'Cutive Mono', monospace;
    color: #6b7280;
}

#college, #email, #year-graduation, #education, #more-about, #telephone, #fax {
    color: #6b7280;
    font-size: 13.5px;
}

#designation {
    color: #374151;
    font-size: 15px;
    margin-top: 5px;
}

strong, span {
    color: #1f2937;
    font-size: 16px;
}

#social-links, #about {
    display: inline-block;
}

#social-links {
    margin-bottom: 12px;
    margin-top: 10px;
}

#social-links a {
    margin: 0 8px;
    transition: transform 0.2s ease;
}

#social-links a:hover {
    transform: translateY(-2px);
}

#edit-intro {
    display: block;
    color: #097bbf;
    font-family: 'Nunito', sans-serif;
}

.fab {
    font-size: 1.1em;
}

.fab, .fas {
    color: whitesmoke;
}

#about > a {
    top: 4px;
    right: 8px;
}

.edit {
    top: 19px;
    right: 10px;
}

#about > a, .edit {
    position: absolute;
    font-size: 15px !important;
}

.stroke-transparent {
    -webkit-text-stroke: 1px #374151;
    -webkit-text-fill-color: transparent;
}

.blue {
    color: #097bbf !important;
    font-size: 13px;
}

.stroke-transparent-blue {
    -webkit-text-stroke: 1px #097bbf;
    -webkit-text-fill-color: transparent;
}

.card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    overflow-x: hidden;
    margin-bottom: 20px;
    padding: 20px 28px 28px 28px;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card > p {
    color: #111827;
    font-weight: 700;
    font-size: 18px;
    line-height: 2;
}

.card > p > i {
    font-size: 18px;
}

.card > a {
    font-weight: 400;
    font-size: 15px;
    margin: 0;
    margin-left: 25px;
    padding: 0;
    border: 0;
    height: auto;
    background: transparent;
    color: #097bbf;
    outline: none;
    cursor: pointer;
}

.card > ul {
    list-style-type: none;
}

.card ul {
    list-style-type: disc;
    margin-left: 20px;
    padding-left: 15px;
}

.card ul li {
    color: #4b5563;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.tags {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.tags ~ a {
    display: none !important;
}

.tags span {
    font-size: 14px;
    font-weight: normal;
    color: #4b5563;
}

.tags span span {
    color: #9ca3af;
}

/* Sidebar Sections */
.sidebar-section {
    margin-bottom: 5px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-title i {
    margin-right: 8px;
    color: #6b7280 !important;
    -webkit-text-fill-color: #6b7280 !important;
    -webkit-text-stroke: 0 !important;
    font-size: 13px;
}

/* Tags Container */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Individual Tags - Minimal Style */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.tag i {
    margin-right: 6px;
    font-size: 11px;
    color: #6b7280 !important;
    -webkit-text-fill-color: #6b7280 !important;
    -webkit-text-stroke: 0 !important;
}

.tag:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

/* Security Clearance Tags - Special Styling */
.clearance-tag {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.clearance-tag i {
    color: #d97706 !important;
    -webkit-text-fill-color: #d97706 !important;
}

.clearance-tag:hover {
    background: #fde68a;
    border-color: #fbbf24;
}

/* Toggle Button */
#theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
    border: none;
}

#theme-toggle i {
    color: #fbbf24 !important;
    -webkit-text-fill-color: #fbbf24 !important;
    -webkit-text-stroke: 0 !important;
    font-size: 18px;
}

#theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==================== */
/* DARK MODE STYLES     */
/* ==================== */

body.dark-mode {
    background: #0f0f0f;
}

body.dark-mode #name {
    color: #f9fafb;
}

body.dark-mode #designation {
    color: #d1d5db;
}

body.dark-mode #profile {
    color: #f9fafb;
}

body.dark-mode #email,
body.dark-mode #college {
    color: #9ca3af;
}

body.dark-mode strong {
    color: #f3f4f6;
}

body.dark-mode hr {
    background: #27272a;
}

body.dark-mode .card {
    background-color: #18181b;
    border-color: #27272a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-mode .card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    border-color: #3f3f46;
}

body.dark-mode .card > p {
    color: #f9fafb;
}

body.dark-mode .card ul li {
    color: #a1a1aa;
}

body.dark-mode .tags {
    color: #f9fafb;
}

body.dark-mode .tags span {
    color: #a1a1aa;
}

body.dark-mode .tags span span {
    color: #71717a;
}

body.dark-mode a {
    color: #60a5fa;
}

body.dark-mode .stroke-transparent {
    -webkit-text-stroke: 1px #e5e7eb;
}

body.dark-mode #social-links .stroke-transparent {
    -webkit-text-stroke: 1px #60a5fa;
}

/* Dark Mode Sidebar */
body.dark-mode .sidebar-title {
    color: #e5e7eb;
}

body.dark-mode .sidebar-title i {
    color: #9ca3af !important;
    -webkit-text-fill-color: #9ca3af !important;
}

/* Dark Mode Tags */
body.dark-mode .tag {
    background: #27272a;
    color: #e5e7eb;
    border-color: #3f3f46;
}

body.dark-mode .tag i {
    color: #a1a1aa !important;
    -webkit-text-fill-color: #a1a1aa !important;
}

body.dark-mode .tag:hover {
    background: #3f3f46;
    border-color: #52525b;
}

/* Dark Mode Security Clearance Tags */
body.dark-mode .clearance-tag {
    background: #422006;
    color: #fcd34d;
    border-color: #854d0e;
}

body.dark-mode .clearance-tag i {
    color: #fbbf24 !important;
    -webkit-text-fill-color: #fbbf24 !important;
}

body.dark-mode .clearance-tag:hover {
    background: #713f12;
    border-color: #a16207;
}

/* Dark Mode Toggle */
body.dark-mode #theme-toggle {
    background: #fbbf24;
}

body.dark-mode #theme-toggle i {
    color: #18181b !important;
    -webkit-text-fill-color: #18181b !important;
}

/* Responsive */
@media screen and (max-width: 1090px) {
    #profile {
        margin-left: 5%;
    }
}

@media screen and (max-width: 850px) {
    #container {
        display: block;
    }

    #profile {
        width: 90%;
        margin: 5% auto;
    }

    #info-cards {
        margin: 0 5%;
    }

    .card {
        margin: 0 0 20px 0;
    }

    .sidebar-tags {
        justify-content: flex-start;
    }
}
