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

body {
    font-family: 'Segoe UI', sans-serif;
    transition: 0.3s;
    padding-top: 80px;
}

body.light-mode { background: #f5f5f5; color: #333; }
body.dark-mode { background: #1a1a2e; color: #eee; }

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 12px 5%;
    z-index: 1000;
    transition: 0.3s;
}

body.light-mode header { background: rgba(255,255,255,0.95); box-shadow: 0 2px 15px rgba(0,0,0,0.08); }
body.dark-mode header { background: rgba(15,15,26,0.95); box-shadow: 0 2px 15px rgba(0,0,0,0.3); }

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #007bff, #00d2ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 120px;
}

/* Clock Container - Centered */
.time-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,123,255,0.12);
    padding: 6px 18px;
    border-radius: 50px;
    border: 1px solid rgba(0,123,255,0.2);
    backdrop-filter: blur(5px);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.time-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 40px;
}

.time-box:first-child {
    background: rgba(0,123,255,0.1);
}

.time-box i {
    font-size: 0.85rem;
    color: #007bff;
}

.time-label {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.time {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    background: rgba(0,123,255,0.15);
    padding: 3px 8px;
    border-radius: 30px;
    letter-spacing: 1px;
    min-width: 70px;
    text-align: center;
}

body.light-mode .time { color: #007bff; background: rgba(0,123,255,0.1); }
body.dark-mode .time { color: #00d2ff; background: rgba(0,210,255,0.1); }

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
    width: 120px;
    justify-content: flex-end;
}

nav ul li a {
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s;
    border-radius: 2px;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

body.light-mode nav ul li a { color: #333; }
body.dark-mode nav ul li a { color: #eee; }
nav ul li a:hover, nav ul li a.active { color: #007bff; }

.menu-icon { display: none; font-size: 1.5rem; cursor: pointer; }

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 5%;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 15px; }
.hero h1 span { color: #007bff; }
.hero p { font-size: 1.2rem; margin-bottom: 25px; opacity: 0.8; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 40px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary { background: #007bff; color: white; }
.btn-primary:hover { background: #0056b3; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,123,255,0.3); }

.btn-outline {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
}
.btn-outline:hover { background: #007bff; color: white; transform: translateY(-2px); }

.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin: 20px 0; }

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,123,255,0.1);
    transition: 0.3s;
    text-decoration: none;
    color: #007bff;
}

.social-icons a:hover { background: #007bff; color: white; transform: translateY(-3px); }

/* Page Header */
.page-header { text-align: center; padding: 40px 5% 20px; }
.page-header h1 { font-size: 2rem; }
.header-line { width: 60px; height: 3px; background: #007bff; margin: 15px auto; border-radius: 3px; }

/* Resume */
.resume-section { padding: 20px 5% 60px; }
.resume-card { max-width: 600px; margin: 0 auto; }
.resume-card img { width: 100%; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.2); }

/* Contact */
.contact-section { padding: 20px 5% 60px; }
.contact-grid { max-width: 1000px; margin: 0 auto; }

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.contact-card {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    min-width: 160px;
    transition: 0.3s;
}

body.light-mode .contact-card { background: white; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
body.dark-mode .contact-card { background: rgba(255,255,255,0.05); }
.contact-card:hover { transform: translateY(-5px); }

.contact-card i { font-size: 2rem; color: #007bff; margin-bottom: 10px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 5px; }
.contact-card p { font-size: 0.85rem; opacity: 0.7; }

/* Form */
.contact-form-wrapper { max-width: 500px; margin: 0 auto; }
input, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid;
    font-size: 1rem;
    transition: 0.3s;
}
body.light-mode input, body.light-mode textarea { background: white; border-color: #ddd; }
body.dark-mode input, body.dark-mode textarea { background: #0f3460; border-color: #1a1a2e; color: white; }
input:focus, textarea:focus { outline: none; border-color: #007bff; box-shadow: 0 0 0 3px rgba(0,123,255,0.1); }

/* Footer */
footer { margin-top: 50px; }
.footer-wave { height: 3px; background: linear-gradient(90deg, #007bff, #00d2ff); }
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; transition: 0.3s; }
body.light-mode .footer-links a { color: #333; }
body.dark-mode .footer-links a { color: #eee; }
.footer-links a:hover { color: #007bff; }

.footer-social { display: flex; gap: 15px; }
.footer-social a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,123,255,0.1);
    text-decoration: none;
    color: #007bff;
    transition: 0.3s;
}
.footer-social a:hover { background: #007bff; color: white; transform: translateY(-3px); }

.footer-bottom { text-align: center; padding: 20px; font-size: 0.8rem; opacity: 0.7; }

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #0056b3; transform: translateY(-3px); }

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        position: relative;
    }
    
    .logo {
        width: auto;
    }
    
    .time-container {
        position: relative;
        left: auto;
        transform: none;
        order: 3;
        margin: 10px auto 0;
    }
    
    nav ul {
        width: auto;
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: 0.3s;
        z-index: 999;
    }
    
    .menu-icon { display: block; }
    
    body.light-mode nav ul { background: white; }
    body.dark-mode nav ul { background: #1a1a2e; }
    nav ul.active { left: 0; }
    
    .hero h1 { font-size: 2rem; }
    .footer-content { flex-direction: column; text-align: center; }
}