/* General Layout & Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #0f2027; /* Dark midnight blue */
    color: #e0e0e0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

.text-center {
    text-align: center;
}

.bg-alt {
    background-color: #142c36; /* Complementary dark shade */
}

h1, h2, h3, h4 {
    color: #ffffff;
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    border-bottom: 3px solid darkcyan;
    padding-bottom: 10px;
    display: inline-block;
    margin-bottom: 40px;
}

/* Header & Navigation */
header {
    background-color: rgba(15, 32, 39, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #1f3f4d;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-weight: bold;
    font-size: 1.3rem;
    color: darkcyan;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: darkcyan;
}

/* --- Hero --- */

.hero {
    background-color: #1b1b1b; 
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- Left Text Layout & Elements --- */
.hero-text {
    flex: 1.2; 
    z-index: 2;
}

.greeting {
    font-size: 5.5rem; 
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -2px;
}

.greeting .dot {
    color: #008b8b; 
}

.intro-line {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.accent-dash {
    width: 40px;
    height: 2px;
    background-color: #008b8b; 
    display: inline-block;
}

.intro-line h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin-bottom: 35px;
    padding-left: 55px; 
}

/* --- Dual Button Formatting --- */
.hero-buttons {
    display: flex;
    gap: 15px;
    padding-left: 55px;
}

.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px; 
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-solid {
    background-color: #008b8b;
    color: #ffffff;
    border: 1px solid #008b8b;
}

.btn-solid:hover {
    background-color: #006666;
    border-color: #006666;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #444444;
}

.btn-outline:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* --- Right Image Layout --- */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-self: flex-end; 
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center; 
    padding-top: 40px;  
}

.polaroid-wrapper {
    position: relative;
    display: inline-block;
}

/* The Masking Tape Style */
.tape {
    position: absolute;
    top: -25px; 
    left: 50%;
    transform: translateX(-50%) rotate(-1deg);
    width: 120px;
    height: 35px;
    background-color: rgba(243, 237, 227, 0.75); 
    backdrop-filter: blur(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    /* Clean jagged-edge */
    clip-path: polygon(
        0% 15%, 5% 0%, 95% 5%, 100% 20%, 
        98% 85%, 93% 100%, 8% 95%, 0% 80%
    );
}

/* The White Polaroid Frame */
.polaroid-frame {
    background-color: #f7f5f0; 
    padding: 16px 16px 40px 16px; 
    border-radius: 2px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6), 
        0 5px 15px rgba(0, 0, 0, 0.4);
    transform: rotate(3deg); 
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Photo Inner Box */
.photo-container {
    background-color: #111; 
    width: 320px;   
    height: 340px;  
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end; 
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    background-color: #222; 
}

/* Handwritten Polaroid Label text */
.polaroid-caption {
    font-family: 'Courier New', Courier, monospace, sans-serif; 
    color: #333333;
    text-align: center;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Interactive Hover Animation */
.polaroid-wrapper:hover .polaroid-frame {
    transform: rotate(0deg) scale(1.03); 
    box-shadow: 
        0 25px 45px rgba(0, 0, 0, 0.7), 
        0 10px 25px rgba(0, 0, 0, 0.5);
}

/* --- Responsive Adaptability for Tablets and Mobile Phones --- */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .greeting { font-size: 4rem; }
    
    .intro-line { justify-content: center; }
    .accent-dash { display: none; } /* Clear clutter on small profiles */
    
    .subtitle, .hero-buttons { padding-left: 0; }
    
    .hero-image {
        align-self: center;
        margin-top: 40px;
    }
    
    .hero-image img { max-height: 50vh; }
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: darkcyan;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: #006666;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #2c5364;
    margin: 0 10px;
}

.btn-secondary:hover {
    background-color: #203a43;
}

/* Skills Section */
.about-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ---  Skill Grid & Cards --- */

.skills-grid {
    display: grid;
    /* This special line forces the automatic sorting & responsive layout columns */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill-card {
    background-color: #121212; 
    color: #ffffff;
    padding: 25px 20px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid #222222;
    border-left: 4px solid darkcyan;
    font-weight: 600;
    font-size: 1.1rem; 
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.skill-subtext {
    display: block;
    font-size: 0.85rem;          
    color: #a0a0a0;             
    margin-top: 10px;            
    font-weight: 400;            
    line-height: 1.4;
    max-width: 90%;              
}

/* Smooth lift and glow effect */
.skill-card:hover {
    transform: translateY(-5px);
    background-color: #181818;
    border-color: darkcyan;
    box-shadow: 0 10px 20px rgba(0, 139, 139, 0.15);
}


/* --- Premium Visual Projects Gallery --- */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.project-card {
    background-color: #121212; 
    border: 1px solid #222222;
    border-radius: 8px;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* --- clickable cards to remove blue underlines --- */
a.project-card {
    text-decoration: none !important; 
    display: flex;         
    flex-direction: column;
    color: inherit;        
}

/* Safety net to clear underlines from headings and paragraphs inside the link */
a.project-card h4, 
a.project-card p, 
a.project-card span {
    text-decoration: none !important;
}


.project-card:hover {
    transform: translateY(-8px);
    border-color: darkcyan;
    box-shadow: 0 15px 30px rgba(0, 139, 139, 0.15);
}

/* Image Framing Containment Box */
.project-image-wrapper {
    width: 100%;
    height: 200px; 
    background-color: #1a1a1a; /* Dark gray placeholder state */
    overflow: hidden;
    border-bottom: 2px solid #222222;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Subtle zoom effect when you hover over the card */
.project-card:hover .project-img {
    transform: scale(1.05);
}

/* Text Padding Area inside the card */
.project-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.project-icon {
    font-size: 1.4rem;
}

.project-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.project-card p {
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto; 
}

.tech-tag {
    background-color: rgba(0, 139, 139, 0.1);
    color: #00ffff;
    border: 1px solid rgba(0, 139, 139, 0.15);
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
}



/* --- Premium Minimalist Contact Section --- */

.contact-card {
    background-color: #121212; 
    border: 1px solid #222222;
    border-radius: 8px;
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.contact-card p {
    color: #a0a0a0;
    max-width: 550px;
    margin: 0 auto 35px auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Secondary outline button look for social links */
.contact-icon-btn {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 20px;
    border: 1px solid #333333;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.contact-icon-btn:hover {
    border-color: darkcyan;
    color: darkcyan;
    background-color: rgba(0, 139, 139, 0.05);
}

/* Big primary button wrapper override */
.contact-main-btn {
    padding: 12px 30px;
    font-size: 0.95rem;
}

/* --- Clean Footer Styling --- */
footer {
    background-color: #050505;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.85rem;
    color: #555555;
    border-top: 1px solid #151515;
    margin-top: 60px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-container { flex-direction: column; gap: 15px; }
    nav a { margin: 0 10px; }
}
