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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #4A4A4A;
    background-color: #ffffff;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Geometric Background Pattern */
.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.015;
    z-index: -1;
    background-image: 
        linear-gradient(45deg, #0056B3 25%, transparent 25%),
        linear-gradient(-45deg, #0056B3 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #0056B3 75%),
        linear-gradient(-45deg, transparent 75%, #0056B3 75%);
    background-size: 80px 80px;
    background-position: 0 0, 0 40px, 40px -40px, -40px 0px;
}

/* Additional Geometric Elements */
.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 86, 179, 0.1), transparent);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 86, 179, 0.1);
    transition: all 0.3s ease;
}

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

.nav-logo .logo-img {
    height: 45px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    text-decoration: none;
    color: #4A4A4A;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #0056B3;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #0056B3, #00AEEF);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: #4A4A4A;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 1px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(0, 86, 179, 0.03) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(0, 174, 239, 0.03) 50%, transparent 52%);
    background-size: 100px 100px;
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: #4A4A4A;
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 0 20px;
}

.hero-logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 86, 179, 0.2));
    transition: all 0.4s ease;
    animation: logo-float 6s ease-in-out infinite;
}

.hero-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 32px rgba(0, 86, 179, 0.3));
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #0056B3, #00AEEF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 3rem;
    color: #666;
    letter-spacing: 0.5px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, #0056B3, transparent);
    position: relative;
    animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #0056B3;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(135deg, #0056B3, #00AEEF);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 86, 179, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #0056B3;
    border: 2px solid #0056B3;
}

.btn-secondary:hover {
    background: #0056B3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 86, 179, 0.2);
}

/* Sections */
.section {
    padding: 120px 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0056B3, #00AEEF);
    border-radius: 2px;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: #4A4A4A;
    letter-spacing: -0.5px;
}

/* About Section */
.about-section {
    background-color: #fafbfc;
    position: relative;
}

.about-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(0, 86, 179, 0.02) 50%, transparent 52%);
    background-size: 80px 80px;
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.7;
}

.skills h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #4A4A4A;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: linear-gradient(135deg, #0056B3, #00AEEF);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 10px rgba(0, 86, 179, 0.2);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.about-image {
    text-align: center;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: linear-gradient(135deg, #0056B3, #00AEEF);
    clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
    z-index: -1;
    opacity: 0.15;
    transform: rotate(45deg);
}

.profile-img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 4px solid white;
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

/* Geometric Profile Placeholder */
.profile-placeholder {
    width: 320px;
    height: 320px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geometric-profile {
    position: relative;
    width: 200px;
    height: 200px;
}

.profile-shape {
    position: absolute;
    border-radius: 4px;
}

.profile-shape-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0056B3, #0056B3);
    top: 0;
    left: 0;
    transform: rotate(45deg);
}

.profile-shape-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00AEEF, #00AEEF);
    top: 20px;
    right: 20px;
    transform: rotate(45deg);
    border: 2px solid #00AEEF;
    background: transparent;
}

.profile-shape-3 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00AEEF, #00AEEF);
    bottom: 20px;
    right: 0;
    transform: rotate(45deg);
    border: 2px solid #00AEEF;
    background: transparent;
}

/* Geometric Profile Animations */
.geometric-profile {
    animation: float 6s ease-in-out infinite;
}

.profile-shape-1 {
    animation: pulse 4s ease-in-out infinite;
}

.profile-shape-2 {
    animation: pulse 4s ease-in-out infinite 1s;
}

.profile-shape-3 {
    animation: pulse 4s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Work Section */
.work-section {
    background-color: white;
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 86, 179, 0.1);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0056B3, #00AEEF);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 86, 179, 0.15);
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.05), rgba(0, 174, 239, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover::after {
    opacity: 1;
}

.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 86, 179, 0.1), rgba(0, 174, 239, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #4A4A4A;
    font-weight: 600;
}

.project-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #0056B3;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(0, 86, 179, 0.1);
    transition: all 0.3s ease;
}

.project-link:hover {
    background: #0056B3;
    color: white;
    transform: translateY(-1px);
}

/* Contact Section */
.contact-section {
    background-color: #fafbfc;
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #4A4A4A;
    font-weight: 600;
}

.contact-info p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #4A4A4A;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 86, 179, 0.1);
}

.social-link:hover {
    color: #0056B3;
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 86, 179, 0.15);
}

.social-link i {
    font-size: 1.3rem;
    width: 24px;
    color: #0056B3;
}

.contact-form {
    display: none;
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #4A4A4A;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(0, 86, 179, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    color: #4A4A4A;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0056B3;
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0056B3, #00AEEF);
    color: white;
    text-align: center;
    padding: 3rem 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.05) 50%, transparent 52%);
    background-size: 60px 60px;
}

.footer p {
    margin: 0;
    opacity: 0.9;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        border-top: 1px solid rgba(0, 86, 179, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-logo-img {
        max-width: 150px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .profile-img {
        width: 280px;
        height: 280px;
    }

    .section {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-logo-img {
        max-width: 120px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .project-card {
        margin: 0 10px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
}

/* Blog Section */
.blog-section {
    background-color: white;
    position: relative;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 86, 179, 0.1);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 86, 179, 0.12);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    margin-bottom: 1rem;
}

.blog-meta time {
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.blog-title {
    margin-bottom: 1rem;
}

.blog-title a {
    text-decoration: none;
    color: #4A4A4A;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #0056B3;
}

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #0056B3;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.blog-link:hover {
    gap: 0.75rem;
    text-decoration: underline;
}

.blog-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.blog-link:hover i {
    transform: translateX(3px);
}

.blog-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Loading Skeletons */
.skeleton {
    animation: skeleton-loading 1.5s infinite ease-in-out;
}

.skeleton-image {
    width: 100%;
    height: 220px;
    background: #e9ecef;
    border-radius: 0;
}

.skeleton-title {
    height: 24px;
    background: #e9ecef;
    border-radius: 4px;
    margin-bottom: 1rem;
    width: 80%;
}

.skeleton-text {
    height: 16px;
    background: #e9ecef;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.skeleton-text:last-child {
    width: 60%;
}

.skeleton-meta {
    height: 14px;
    background: #e9ecef;
    border-radius: 4px;
    width: 120px;
    margin-bottom: 1rem;
}

.blog-card.skeleton .skeleton-image {
    height: 200px;
}

@keyframes skeleton-loading {
    0% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.7;
    }
}

/* Error Messages */
.error-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.error-message i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
    display: block;
}

.error-message p {
    font-size: 1.1rem;
    margin: 0;
    color: #6c757d;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card {
        max-width: 100%;
    }

    .blog-title a {
        font-size: 1.2rem;
    }
}
